Changeset 47550 for trunk/src/wp-includes/rewrite.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite.php
r47468 r47550 248 248 global $wp_rewrite; 249 249 250 if ( ! in_array( $feedname, $wp_rewrite->feeds ) ) {250 if ( ! in_array( $feedname, $wp_rewrite->feeds, true ) ) { 251 251 $wp_rewrite->feeds[] = $feedname; 252 252 } … … 365 365 // Identify the 'postname' position in the permastruct array. 366 366 $permastructs = array_values( array_filter( explode( '/', get_option( 'permalink_structure' ) ) ) ); 367 $postname_index = array_search( '%postname%', $permastructs );367 $postname_index = array_search( '%postname%', $permastructs, true ); 368 368 369 369 if ( false === $postname_index ) { … … 597 597 $query = array(); 598 598 foreach ( (array) $query_vars as $key => $value ) { 599 if ( in_array( $key, $wp->public_query_vars ) ) {599 if ( in_array( $key, $wp->public_query_vars, true ) ) { 600 600 $query[ $key ] = $value; 601 601 if ( isset( $post_type_query_vars[ $key ] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.