[wp-trac] [WordPress Trac] #56180: header_image(): may consider adding filter in 'header_image()'

WordPress Trac noreply at wordpress.org
Mon Jul 11 12:16:39 UTC 2022

#56180: header_image(): may consider adding filter in 'header_image()'
 Reporter:  hztyfoon                    |       Owner:  audrasjb
     Type:  feature request             |      Status:  reviewing
 Priority:  normal                      |   Milestone:  6.1
Component:  Themes                      |     Version:  2.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  administration

Comment (by SergeyBiryukov):

 It looks like the proposed filter would affect `header_image()`, but not
 `get_header_image()`, which may be confusing.

 Should this be a filter on the result of `get_header_image()` instead?
 That way it would work for both functions.

Ticket URL: <https://core.trac.wordpress.org/ticket/56180#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list