[wp-trac] [WordPress Trac] #61408: Site logo returns image attachment when no logo is defined
WordPress Trac
noreply at wordpress.org
Thu Jun 13 14:46:24 UTC 2024
#61408: Site logo returns image attachment when no logo is defined
-------------------------------------------------+-------------------------
Reporter: greenshady | Owner: joedolson
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6
Component: Themes | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing has- | Focuses:
testing-info commit |
-------------------------------------------------+-------------------------
Changes (by joedolson):
* status: accepted => closed
* resolution: => fixed
Comment:
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/61408#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list