WordPress.org

Make WordPress Core

Changeset 23367


Ignore:
Timestamp:
02/01/2013 08:33:27 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Properly check if the custom header/background has been initialized. fixes #23170. see #22246.

File:
1 edited

Legend:

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

    r23191 r23367  
    14901490    switch ( $feature ) {
    14911491        case 'custom-header' :
    1492             if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
     1492            if ( ! did_action( 'wp_loaded' ) )
    14931493                break;
    14941494            $support = get_theme_support( 'custom-header' );
     
    15001500
    15011501        case 'custom-background' :
    1502             if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
     1502            if ( ! did_action( 'wp_loaded' ) )
    15031503                break;
    15041504            $support = get_theme_support( 'custom-background' );
Note: See TracChangeset for help on using the changeset viewer.