Ticket #23170: 23170.patch
File 23170.patch, 908 bytes (added by , 12 years ago) |
---|
-
wp-includes/theme.php
1489 1489 1490 1490 switch ( $feature ) { 1491 1491 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' ) ) 1493 1493 break; 1494 1494 $support = get_theme_support( 'custom-header' ); 1495 1495 if ( $support[0]['wp-head-callback'] ) … … 1499 1499 break; 1500 1500 1501 1501 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' ) ) 1503 1503 break; 1504 1504 $support = get_theme_support( 'custom-background' ); 1505 1505 remove_action( 'wp_head', $support[0]['wp-head-callback'] );