[wp-trac] [WordPress Trac] #61408: Site logo returns image attachment when no logo is defined

WordPress Trac noreply at wordpress.org
Mon Jun 10 21:53:18 UTC 2024


#61408: Site logo returns image attachment when no logo is defined
--------------------------+------------------------
 Reporter:  greenshady    |       Owner:  joedolson
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  6.6
Component:  Themes        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------
Changes (by joedolson):

 * keywords:   => needs-patch
 * owner:  (none) => joedolson
 * status:  new => accepted
 * milestone:  Awaiting Review => 6.6


Comment:

 The problem is that `has_custom_logo()` now uses
 `wp_attachment_is_image()`, which uses the `$post` global if no value is
 passed. Need to exit earlier in `has_custom_logo()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61408#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list