[wp-trac] [WordPress Trac] #60922: get_custom_logo returns an empty link when no logo image is set
WordPress Trac
noreply at wordpress.org
Thu Jun 13 14:46:24 UTC 2024
#60922: get_custom_logo returns an empty link when no logo image is set
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6
Component: Themes | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback needs- | Focuses:
testing commit | accessibility
-------------------------------------------------+-------------------------
Comment (by joedolson):
In [changeset:"58407" 58407]:
{{{
#!CommitTicketReference repository="" revision="58407"
Themes: Fix attachment rendered as site logo on attachment page.
Fix issue where the attachment thumbnail would be rendered as the site
logo on attachment single templates if no site logo is set. Avoid calling
`wp_attachment_is_image()` with no value, since that function will
fallback to the global `$post` variable. Follow up to [58213]. See #60922.
Props greenshady, krupajnanda, hmbashar, rajinsharwar, joedolson.
Fixes #61408.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60922#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list