[wp-trac] [WordPress Trac] #30800: Twenty Fourteen does not set priority for sidebars

WordPress Trac noreply at wordpress.org
Wed Dec 24 06:33:03 UTC 2014


#30800: Twenty Fourteen does not set priority for sidebars
------------------------------+----------------------
 Reporter:  WPMUDEV-Support6  |       Owner:
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  Bundled Theme     |     Version:
 Severity:  minor             |  Resolution:  invalid
 Keywords:                    |     Focuses:
------------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 All hooks have a priority. The default is 10. `add_action( 'widgets_init',
 'twentyfourteen_widgets_init' );` sets priority to 10. To remove this, you
 simply call `remove_action( 'widgets_init', 'twentyfourteen_widgets_init'
 )` (when priority is 10) or `remove_action( 'widgets_init',
 'twentyfourteen_widgets_init', 10 )` (to be explicit).

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


More information about the wp-trac mailing list