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/tests/phpunit/tests/widgets.php

    r41594 r41673  
    714714        // Test restoring sidebars widgets when previously activated.
    715715        set_theme_mod( 'sidebars_widgets', array(
    716             'sidebar-1' => array( 'tag_cloud-1' ),
    717             'sidebar-2' => array(),
    718             'sidebar-3' => array( 'unregistered_widget-1', 'text-1', 'media_image-1' ),
    719             'orphaned_widgets_1' => array( 'media_video-2' ),
     716            'time' => time(),
     717            'data' => array(
     718                'sidebar-1' => array( 'tag_cloud-1' ),
     719                'sidebar-2' => array(),
     720                'sidebar-3' => array( 'unregistered_widget-1', 'text-1', 'media_image-1' ),
     721                'orphaned_widgets_1' => array( 'media_video-2' ),
     722            ),
    720723        ) );
    721724
Note: See TracChangeset for help on using the changeset viewer.