[wp-trac] [WordPress Trac] #51538: Widget disappears from the sidebar when switching the theme and back again.

WordPress Trac noreply at wordpress.org
Thu Oct 15 16:19:40 UTC 2020


#51538: Widget disappears from the sidebar when switching the theme and back again.
--------------------------+-----------------------------
 Reporter:  mhshohel      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  5.5.1
 Severity:  critical      |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 A widget with ID  **activity_right** disappearing when I switch BuddBboss
 theme to Twenty Twenty theme. This because of there something wrong with
 Widget Mapping
 {{{
 wp-includes/widgets.php
 }}}

 line number 1371

 It should move widgets to new $new_sidebars_widgets when
 $new_sidebars_widgets has the same sidebar as $existing_sidebars_widgets
 has, then only, otherwise move it to inactivate sidebar.

 Attaching a patch

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


More information about the wp-trac mailing list