[wp-trac] [WordPress Trac] #39512: has_header_video() should be filtered
WordPress Trac
noreply at wordpress.org
Fri Jan 20 06:58:57 UTC 2017
#39512: has_header_video() should be filtered
--------------------------+--------------------
Reporter: wpweaver | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.2
Component: Customize | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by SergeyBiryukov):
> But the fact that has_header_video() is used various places by the
header video code, it makes it difficult to supply an alternate video if
there is no get_theme_mod( 'external_header_video' ) set.
FWIW, `get_theme_mod()` is filterable, so it should be possible to set an
alternative video URL using `theme_mod_external_header_video` filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39512#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list