WordPress.org

Make WordPress Core

Ticket #23170: 23170.patch

File 23170.patch, 908 bytes (added by SergeyBiryukov, 5 years ago)
  • wp-includes/theme.php

     
    14891489
    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', '_custom_header_background_just_in_time' ) )
    14931493                                break;
    14941494                        $support = get_theme_support( 'custom-header' );
    14951495                        if ( $support[0]['wp-head-callback'] )
     
    14991499                        break;
    15001500
    15011501                case 'custom-background' :
    1502                         if ( false === did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
     1502                        if ( ! did_action( 'wp_loaded', '_custom_header_background_just_in_time' ) )
    15031503                                break;
    15041504                        $support = get_theme_support( 'custom-background' );
    15051505                        remove_action( 'wp_head', $support[0]['wp-head-callback'] );