Changeset 47550 for trunk/src/wp-includes/class-wp.php
- Timestamp:
- 04/05/2020 03:00:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp.php
r47122 r47550 91 91 */ 92 92 public function add_query_var( $qv ) { 93 if ( ! in_array( $qv, $this->public_query_vars ) ) {93 if ( ! in_array( $qv, $this->public_query_vars, true ) ) { 94 94 $this->public_query_vars[] = $qv; 95 95 } … … 349 349 $queryable_post_types = get_post_types( array( 'publicly_queryable' => true ) ); 350 350 if ( ! is_array( $this->query_vars['post_type'] ) ) { 351 if ( ! in_array( $this->query_vars['post_type'], $queryable_post_types ) ) {351 if ( ! in_array( $this->query_vars['post_type'], $queryable_post_types, true ) ) { 352 352 unset( $this->query_vars['post_type'] ); 353 353 } … … 413 413 } 414 414 $headers['Content-Type'] = get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ); 415 } elseif ( in_array( $status, array( 403, 500, 502, 503 ) ) ) {415 } elseif ( in_array( $status, array( 403, 500, 502, 503 ), true ) ) { 416 416 $exit_required = true; 417 417 }
Note: See TracChangeset
for help on using the changeset viewer.