Skip to content

Commit

Permalink
Added sanitize data on create new template
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed Jan 19, 2020
1 parent af085e5 commit a31dcf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public function admin_action_new_post() {
if ( empty( $_GET['template_type'] ) ) {
$type = 'post';
} else {
$type = $_GET['template_type']; // XSS ok.
$type = sanitize_text_field( $_GET['template_type'] );
}

$post_data = isset( $_GET['post_data'] ) ? $_GET['post_data'] : [];
Expand Down

0 comments on commit a31dcf4

Please sign in to comment.