WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/17 18:10:06 (4 months ago)
Author:
obenland
Message:

Widgets: Revert format of sidebars_widgets.

Restores the data format of the sidebars_widgets theme mod to its pre [41555]
format. It can trigger PHP warnings after switching themes if that mod has not
been removed previously.

Fixes #39693.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r41594 r41673  
    12871287    // Sidebars_widgets settings from when this theme was previously active. 
    12881288    $old_sidebars_widgets = get_theme_mod( 'sidebars_widgets' ); 
     1289    $old_sidebars_widgets = $old_sidebars_widgets['data']; 
    12891290 
    12901291    if ( is_array( $old_sidebars_widgets ) ) { 
Note: See TracChangeset for help on using the changeset viewer.