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

WordPress Trac noreply at wordpress.org
Sun Nov 13 08:20:46 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 has-unit-tests  |     Focuses:
--------------------------------------+--------------------

Comment (by bradyvercher):

 @peterwilsoncc Unfortunately, calling `add_theme_support( 'custom-header'
 )` doesn't work well in tests since it defines constants that end up
 poisoning subsequent tests. I tried working around that in #38639 by
 assigning the custom header args directly to the `$_wp_theme_features`
 global, but I'm not sure if there's a better way.

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


More information about the wp-trac mailing list