| @@ -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 | |