WordPress.org

Make WordPress Core

Ticket #20249: theme.php.patch

File theme.php.patch, 579 bytes (added by azaozz, 3 years ago)
  • wp-includes/theme.php

     
    14411441                add_theme_support( 'custom-background', array( '__jit' => true ) ); 
    14421442 
    14431443                $args = get_theme_support( 'custom-background' ); 
    1444                 add_action( 'wp_head', $args[0]['wp-head-callback'] ); 
     1444                if ( $args[0]['wp-head-callback'] ) 
     1445                        add_action( 'wp_head', $args[0]['wp-head-callback'] ); 
    14451446 
    14461447                if ( is_admin() ) { 
    14471448                        require_once( ABSPATH . 'wp-admin/custom-background.php' );