WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/16 08:17:57 (13 months ago)
Author:
westonruter
Message:

Customize: Add unit tests for importing theme starter content.

Props welcher, westonruter.
See #38114, #38533, #38615.
Fixes #38540.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r39272 r39276  
    18251825function get_theme_starter_content() { 
    18261826    $theme_support = get_theme_support( 'starter-content' ); 
    1827     if ( ! empty( $theme_support ) ) { 
     1827    if ( is_array( $theme_support ) && ! empty( $theme_support[0] ) && is_array( $theme_support[0] ) ) { 
    18281828        $config = $theme_support[0]; 
    18291829    } else { 
Note: See TracChangeset for help on using the changeset viewer.