[wp-trac] [WordPress Trac] #38738: Remove front page restrictions from new custom header functions

WordPress Trac noreply at wordpress.org
Sat Nov 12 02:12:43 UTC 2016


#38738: Remove front page restrictions from new custom header functions
----------------------------------------+--------------------
 Reporter:  peterwilsoncc               |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.7
Component:  Themes                      |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+--------------------
Changes (by peterwilsoncc):

 * keywords:  has-patch => has-patch needs-unit-tests


Comment:

 In [attachment:38738.2.diff]

 * new function `is_header_video_active()` to determine if video should be
 shown
 * function always returns false if `custom-header, video` isn't supported
 by the theme
 * new filter `is_header_video_active` to allow themes and plugins to
 modify the output
 * defaults to allowing video on `is_front_page()` only.

 Removed from original patch:

 * custom callback when setting up theme support

 Left unanswered: naming things.

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


More information about the wp-trac mailing list