[wp-trac] [WordPress Trac] #28183: Widget contents removed from widget areas upon upgrade to 3.9.1

WordPress Trac noreply at wordpress.org
Sat May 10 15:25:19 UTC 2014


#28183: Widget contents removed from widget areas upon upgrade to 3.9.1
--------------------------+------------------------------
 Reporter:  toggerybob    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by westonruter):

 Is it known whether or not the theme was also upgraded before the
 WordPress 3.9.1 upgrade was run? The `Theme_Upgrader::current_after()`
 method in `class-wp-upgrader.php` can actually call `switch_theme()`:

 {{{
 // Ensure stylesheet name hasn't changed after the upgrade:
 if ( $theme == get_stylesheet() && $theme !=
 $this->result['destination_name'] ) {
         wp_clean_themes_cache();
         $stylesheet = $this->result['destination_name'];
         switch_theme( $stylesheet );
 }
 }}}

 This in turn will cause `retrieve_widgets()` to run.

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


More information about the wp-trac mailing list