[wp-trac] [WordPress Trac] #20897: extra_theme_headers hook no longer available

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 10 20:20:05 UTC 2012


#20897: extra_theme_headers hook no longer available
-----------------------------------------------+------------------
 Reporter:  greenshady                         |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  3.4
Component:  Themes                             |     Version:  3.4
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch commit needs-unit-tests  |
-----------------------------------------------+------------------
Changes (by nacin):

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


Comment:

 I think [attachment:20897.patch] would work, yep. We could probably use
 some unit tests for this.

 WP_Theme avoids get_theme_data() but it does pass a context of 'theme' to
 get_file_data(), so the filter still works. As SergeyBiryukov says, get()
 and display() do work. Hidden feature. :-)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20897#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list