Skip to content

Commit 822a689

Browse files
committed
removed the esc_attr and used sanitize_text_feild
1 parent 6957939 commit 822a689

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class-bsf-sb-metabox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function metabox_save( $post_id ) {
116116

117117
if ( isset( $_POST['replace_this_sidebar'] ) ) {
118118

119-
$replace_sidebar = sanitize_text_field( esc_attr( $_POST['replace_this_sidebar'] ) );
119+
$replace_sidebar = sanitize_text_field( $_POST['replace_this_sidebar'] );
120120

121121
update_post_meta( $post_id, '_replace_this_sidebar', $replace_sidebar );
122122
}

0 commit comments

Comments
 (0)