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

WordPress Trac noreply at wordpress.org
Wed Jan 9 21:56:35 UTC 2013


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

 * cc: info@… (added)
 * status:  new => closed
 * resolution:   => invalid


Comment:

 No need to make this function pluggable. Just remove it in your child
 theme per hook, and use your own setup function then:

 {{{
 add_action( 'after_setup_theme', 'disable_parent_custom_header', 9 );
 function disable_parent_custom_header()
 {
         remove_action( 'after_setup_theme',
 'twentytwelve_custom_header_setup' );
 }
 }}}

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


More information about the wp-trac mailing list