[wp-trac] [WordPress Trac] #53489: Widgets: Registered sidebar not showing in the widget editor

WordPress Trac noreply at wordpress.org
Wed Jun 23 15:20:18 UTC 2021


#53489: Widgets: Registered sidebar not showing in the widget editor
---------------------------+---------------------
 Reporter:  walbo          |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.8
Component:  Widgets        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:
---------------------------+---------------------

Comment (by walbo):

 Are using `widgets_init`.

 {{{#!php
 <?php
 function twenty_twenty_one_widgets_init() {
         register_sidebar(
                 array(
                         'name' => 'My sidebar',
                         'id'   => 'my-sidebar',
                 )
         );
 }
 add_action( 'widgets_init', 'twenty_twenty_one_widgets_init' );
 }}}

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


More information about the wp-trac mailing list