From 7a9d5c9ab95ee0a01e2495606f47c7240cdb3204 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 19 Jan 2017 02:02:39 +0000 Subject: [PATCH] Media: After [36837], check the correct theme modification name for custom logo in `_media_states()`. Props pbiron, mitraval192. Fixes #39627. git-svn-id: https://develop.svn.wordpress.org/trunk@39925 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index edf9a8641c..e655f97911 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1794,7 +1794,7 @@ function _media_states( $post ) { $media_states[] = __( 'Site Icon' ); } - if ( $post->ID == get_theme_mod( 'site_logo' ) ) { + if ( $post->ID == get_theme_mod( 'custom_logo' ) ) { $media_states[] = __( 'Logo' ); }