mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@41673 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -713,10 +713,13 @@ class Tests_Widgets extends WP_UnitTestCase {
|
||||
|
||||
// Test restoring sidebars widgets when previously activated.
|
||||
set_theme_mod( 'sidebars_widgets', array(
|
||||
'sidebar-1' => array( 'tag_cloud-1' ),
|
||||
'sidebar-2' => array(),
|
||||
'sidebar-3' => array( 'unregistered_widget-1', 'text-1', 'media_image-1' ),
|
||||
'orphaned_widgets_1' => array( 'media_video-2' ),
|
||||
'time' => time(),
|
||||
'data' => array(
|
||||
'sidebar-1' => array( 'tag_cloud-1' ),
|
||||
'sidebar-2' => array(),
|
||||
'sidebar-3' => array( 'unregistered_widget-1', 'text-1', 'media_image-1' ),
|
||||
'orphaned_widgets_1' => array( 'media_video-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
$sidebars_widgets = array(
|
||||
|
||||
Reference in New Issue
Block a user