WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2017 06:10:06 PM (8 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/theme.php

    r41597 r41673  
    691691
    692692    if ( is_array( $_sidebars_widgets ) ) {
    693         set_theme_mod( 'sidebars_widgets', $_sidebars_widgets );
     693        set_theme_mod( 'sidebars_widgets', array( 'time' => time(), 'data' => $_sidebars_widgets ) );
    694694    }
    695695
Note: See TracChangeset for help on using the changeset viewer.