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

WordPress Trac noreply at wordpress.org
Fri Nov 11 10:04:15 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      |     Focuses:
---------------------------+--------------------
Changes (by flixos90):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:38738.diff] implements the theme support approach and sets
 `is_front_page()` as the default callback. A function
 `is_header_video_active()` is introduced for easy detection.

 A theme developer who for instance wants to show the video everywhere
 would add theme support for `custom-header` with the argument `video-
 active-callback` being either empty or having the value `__return_true`.

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


More information about the wp-trac mailing list