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/Compatibility/BetterDocs.php +2 -2 trunk2.6.1 View file →
@@ -59,9 +59,9 @@
59 59 }
60 60 }
61 61
62 62 // phpcs:disable WordPress.Security.NonceVerification.Recommended
63 - if ( isset( $_REQUEST['post_type'] ) && is_string( $_REQUEST['post_type'] ) ) {
63 + if ( isset( $_REQUEST['post_type'] ) ) {
64 64 $post_type = sanitize_text_field( wp_unslash( $_REQUEST['post_type'] ) );
65 65
66 66 // Check if any ct_forced_* request aregs are set. If so we should use the post type intent.
67 67 if ( strpos( $post_type, 'ct_forced_' ) !== false ) {
@@ -68,9 +68,9 @@
68 68 $intent['type'] = 'post_type';
69 69
70 70 $post_type = str_replace( 'ct_forced_', '', $post_type );
71 71
72 - $intent['name'] = array_values( array_filter( array_map( 'sanitize_key', explode( ':', $post_type ) ) ) );
72 + $intent['name'] = explode( ':', $post_type );
73 73 }
74 74 }
75 75 // phpcs:enable WordPress.Security.NonceVerification.Recommended
76 76