[wp-trac] [WordPress Trac] #23157: Custom header in twenty twelve theme not pluggable/filterable

WordPress Trac noreply at wordpress.org
Fri Jan 11 12:44:34 UTC 2013


#23157: Custom header in twenty twelve theme not pluggable/filterable
---------------------------+----------------------
 Reporter:  adamrice       |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  3.5
 Severity:  minor          |  Resolution:  invalid
 Keywords:                 |
---------------------------+----------------------

Comment (by toscho):

 Replying to [comment:3 paulwp]:
 > Why does 9 work instead of 11 ?

 When the child theme’s `functions.php` is loaded the parent theme’s action
 is not yet bound to the hook. So you have to wait until
 `'after_setup_theme'` is actually called, then remove the callback
 registered with a lower priority. But you have to do this earlier than the
 callback, otherwise the callback will be done already.

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


More information about the wp-trac mailing list