Changeset 45639 for trunk/src/wp-includes/theme.php
- Timestamp:
- 07/15/2019 06:24:08 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r45628 r45639 2372 2372 * for post thumbnails. 2373 2373 */ 2374 if ( is _array( $args[0] ) && isset( $_wp_theme_features['post-thumbnails'] ) ) {2374 if ( isset( $args[0] ) && is_array( $args[0] ) && isset( $_wp_theme_features['post-thumbnails'] ) ) { 2375 2375 $args[0] = array_unique( array_merge( $_wp_theme_features['post-thumbnails'][0], $args[0] ) ); 2376 2376 } … … 2379 2379 2380 2380 case 'post-formats': 2381 if ( is _array( $args[0] ) ) {2381 if ( isset( $args[0] ) && is_array( $args[0] ) ) { 2382 2382 $post_formats = get_post_format_slugs(); 2383 2383 unset( $post_formats['standard'] ); … … 2392 2392 // Build an array of types for back-compat. 2393 2393 $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); 2394 } elseif ( ! is _array( $args[0] ) ) {2394 } elseif ( ! isset( $args[0] ) || ! is_array( $args[0] ) ) { 2395 2395 _doing_it_wrong( "add_theme_support( 'html5' )", __( 'You need to pass an array of types.' ), '3.6.1' ); 2396 2396 return false; … … 2404 2404 2405 2405 case 'custom-logo': 2406 if ( ! is_array( $args )) {2406 if ( true === $args ) { 2407 2407 $args = array( 0 => array() ); 2408 2408 } … … 2427 2427 2428 2428 case 'custom-header': 2429 if ( ! is_array( $args )) {2429 if ( true === $args ) { 2430 2430 $args = array( 0 => array() ); 2431 2431 } … … 2517 2517 2518 2518 case 'custom-background': 2519 if ( ! is_array( $args )) {2519 if ( true === $args ) { 2520 2520 $args = array( 0 => array() ); 2521 2521 }
Note: See TracChangeset
for help on using the changeset viewer.