Ticket #22857: 22857.patch
File 22857.patch, 1.3 KB (added by , 11 years ago) |
---|
-
template.php
1609 1609 1610 1610 if ( current_theme_supports( 'custom-header') ) { 1611 1611 $meta_header = get_post_meta($post->ID, '_wp_attachment_is_custom_header', true ); 1612 if ( ! empty( $meta_header ) && $meta_header == $stylesheet ) 1612 if ( ! empty( $meta_header ) && $meta_header == $stylesheet ) { 1613 1613 $media_states[] = __( 'Header Image' ); 1614 1615 $header_image = get_header_image(); 1616 if ( ! is_random_header_image() && $header_image && $header_image == wp_get_attachment_url( $post->ID ) ) { 1617 $media_states[] = __( 'Current Header Image' ); 1618 } 1619 } 1614 1620 } 1615 1621 1616 1622 if ( current_theme_supports( 'custom-background') ) { 1617 1623 $meta_background = get_post_meta($post->ID, '_wp_attachment_is_custom_background', true ); 1618 if ( ! empty( $meta_background ) && $meta_background == $stylesheet ) 1624 if ( ! empty( $meta_background ) && $meta_background == $stylesheet ) { 1619 1625 $media_states[] = __( 'Background Image' ); 1626 1627 $background_image = get_background_image(); 1628 if ( $background_image && $background_image == wp_get_attachment_url( $post->ID ) ) { 1629 $media_states[] = __( 'Current Background Image' ); 1630 } 1631 } 1620 1632 } 1621 1633 1622 1634 /**