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

WordPress Trac noreply at wordpress.org
Wed Jun 23 15:09:19 UTC 2021


#53489: Widgets: Registered sidebar not showing in the widget editor
--------------------------+-----------------------------
 Reporter:  walbo         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When I register a new sidebar it doesn't show in the widget editor. I can
 access it from the customizer.

 Once I added block in my sidebar from the customzier and saved, it shows
 up in the widget editor.

 Steps to reproduce:
 1. Register a new sidebar. Ex:
 {{{#!php
 <?php
 register_sidebar(
   array(
     'name' => 'My sidebar',
     'id'   => 'my-sidebar',
   )
 );
 }}}

 2. Insert the sidebar on your page. Ex in the footer.
 {{{#!php
 <?php
 if ( is_active_sidebar( 'my-sidebar' ) ) {
         dynamic_sidebar( 'my-sidebar' );
 }
 }}}

 3. Visit `wp-admin/widgets.php` and `My sidebar` is **not** there.
 4. Visit the customizer widget section and confirm `My sidebar` is there
 5. Add a block into `My sidebar` from the customizer and publish.
 6. Revisit `wp-admin/widgets.php` and the sidebar area is visible.

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


More information about the wp-trac mailing list