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

WordPress Trac noreply at wordpress.org
Fri Nov 11 17:48:29 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:
---------------------------+--------------------

Comment (by flixos90):

 @bradyvercher The approach I suggested makes using the header video
 functionality in the theme a bit easier. You only have to declare the
 details once when adding theme support, thus it's not necessary to pass a
 variable to the function. If a theme had multiple areas where it showed
 the header markup, it would need to pass the variable each time whereas
 the theme support approach allows to handle it in one central location.
 The additional function can also make sense to have available for possible
 plugins that enhance the header video function in some way.

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


More information about the wp-trac mailing list