[wp-trac] [WordPress Trac] #56180: header_image(): may consider adding filter in 'header_image()'
WordPress Trac
noreply at wordpress.org
Mon Jul 11 21:29:27 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 audrasjb):
Replying to [comment:11 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.
Great point!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56180#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list