Changeset 47550 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 04/05/2020 03:00:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r47455 r47550 3234 3234 } 3235 3235 3236 if ( in_array( $relation_type, array( 'preconnect', 'dns-prefetch' ) ) ) {3236 if ( in_array( $relation_type, array( 'preconnect', 'dns-prefetch' ), true ) ) { 3237 3237 $parsed = wp_parse_url( $url ); 3238 3238 … … 3259 3259 3260 3260 foreach ( $atts as $attr => $value ) { 3261 if ( ! is_scalar( $value ) || 3262 ( ! in_array( $attr, array( 'as', 'crossorigin', 'href', 'pr', 'rel', 'type' ), true ) && ! is_numeric( $attr ) ) ) { 3261 if ( ! is_scalar( $value ) 3262 || ( ! in_array( $attr, array( 'as', 'crossorigin', 'href', 'pr', 'rel', 'type' ), true ) && ! is_numeric( $attr ) ) 3263 ) { 3263 3264 3264 3265 continue; … … 3304 3305 $parsed = wp_parse_url( $dependency->src ); 3305 3306 3306 if ( ! empty( $parsed['host'] ) && ! in_array( $parsed['host'], $unique_hosts ) && $parsed['host'] !== $_SERVER['SERVER_NAME'] ) { 3307 if ( ! empty( $parsed['host'] ) 3308 && ! in_array( $parsed['host'], $unique_hosts, true ) && $parsed['host'] !== $_SERVER['SERVER_NAME'] 3309 ) { 3307 3310 $unique_hosts[] = $parsed['host']; 3308 3311 } … … 3372 3375 if ( wp_get_current_user() ) { // Look for cookie. 3373 3376 $ed = get_user_setting( 'editor', 'tinymce' ); 3374 $r = ( in_array( $ed, array( 'tinymce', 'html', 'test' ) ) ) ? $ed : $r;3377 $r = ( in_array( $ed, array( 'tinymce', 'html', 'test' ), true ) ) ? $ed : $r; 3375 3378 } 3376 3379
Note: See TracChangeset
for help on using the changeset viewer.