Make WordPress Core

Changeset 22313


Ignore:
Timestamp:
10/26/2012 04:17:25 AM (12 years ago)
Author:
nacin
Message:

If we have not yet initialized the custom header/background, do not do extra removal in _remove_theme_support(). fixes #22246.

File:
1 edited

Legend:

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

    r22312 r22313  
    14641464    switch ( $feature ) {
    14651465        case 'custom-header' :
     1466            if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
     1467                break;
    14661468            $support = get_theme_support( 'custom-header' );
    14671469            if ( $support[0]['wp-head-callback'] )
     
    14721474
    14731475        case 'custom-background' :
     1476            if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
     1477                break;
    14741478            $support = get_theme_support( 'custom-background' );
    14751479            remove_action( 'wp_head', $support[0]['wp-head-callback'] );
Note: See TracChangeset for help on using the changeset viewer.