Opened 9 years ago
Closed 9 years ago
#39627 closed defect (bug) (fixed)
Custom Logo: Use correct theme mod in _media_states()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.8 | Priority: | normal |
| Severity: | normal | Version: | 4.5 |
| Component: | Media | Keywords: | good-first-bug has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Thanks for reporting this!
Introduced in #33755 / [36698]. Forgotten in [36837]