[wp-trac] [WordPress Trac] #38738: Remove front page restrictions from new custom header functions
WordPress Trac
noreply at wordpress.org
Tue Nov 15 07:15:22 UTC 2016
#38738: Remove front page restrictions from new custom header functions
--------------------------------------+----------------------------
Reporter: peterwilsoncc | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: Themes | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):
* owner: => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"39240"]:
{{{
#!CommitTicketReference repository="" revision="39240"
Themes: Remove front page restriction from video header functions.
Adds a callback for determining when video headers should be displayed in
themes supporting custom headers. By default, video headers are only
displayed on the front page of a site.
Theme authors may set a custom callback by passing `'video-active-
callback' => 'mytheme_video_active_callback'` as an argument. The default
callback is `is_front_page()`.
This introduces the new function `is_header_video_active()` - returns
`true` on pages that should display video headers. The return value can be
filtered using the new filter of the same name.
Props flixos90, bradyvercher, peterwilsoncc, joemcgill.
Fixes #38738.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38738#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list