[wp-trac] [WordPress Trac] #39627: Logo media state
WordPress Trac
noreply at wordpress.org
Wed Jan 18 16:36:35 UTC 2017
#39627: Logo media state
--------------------------+-----------------------------
Reporter: pbiron | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.6.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
in wp-admin/includes/template.php,
{{{
function _media_states ( $post ) {
...
if ( $post->ID == get_theme_mod( 'site_logo' ) ) {
$media_states[] = __( 'Logo' );
}
}}}
should be
{{{
function _media_states ( $post ) {
...
if ( $post->ID == get_theme_mod( 'custom_logo' ) ) {
$media_states[] = __( 'Logo' );
}
}}}
As a result, when the Theme Customizer is used to add a custom logo, the
image added as the custom logo is '''not''' tag as such in the Media
Library because the wrong theme mod {{{$name}}} is checked.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39627>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list