PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Controllers/Admin/WidgetEditor.php +1 -1 trunk2.6.1 View file →
@@ -103,9 +103,9 @@
103 103 *
104 104 * @return array<string,mixed>|bool
105 105 */
106 106 public function save( $instance, $new_instance, $old_instance ) {
107 - if ( isset( $_POST['content-control-widget-editor-nonce'] ) && is_string( $_POST['content-control-widget-editor-nonce'] ) && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['content-control-widget-editor-nonce'] ) ), 'content-control-widget-editor-nonce' ) ) {
107 + if ( isset( $_POST['content-control-widget-editor-nonce'] ) && wp_verify_nonce( wp_unslash( sanitize_key( $_POST['content-control-widget-editor-nonce'] ) ), 'content-control-widget-editor-nonce' ) ) {
108 108 $new_instance = parse_widget_options( $new_instance );
109 109 $instance['which_users'] = $new_instance['which_users'];
110 110 $instance['roles'] = $new_instance['roles'];
111 111