WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2016 08:04:36 PM (4 years ago)
Author:
westonruter
Message:

Customize: Implement customized state persistence with changesets.

Includes infrastructure developed in the Customize Snapshots feature plugin.

See https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions/

Props westonruter, valendesigns, utkarshpatel, stubgo, lgedeon, ocean90, ryankienstra, mihai2u, dlh, aaroncampbell, jonathanbardo, jorbin.
See #28721.
See #31089.
Fixes #30937.
Fixes #31517.
Fixes #30028.
Fixes #23225.
Fixes #34142.
Fixes #36485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/customize/setting.php

    r38763 r38810  
    9898     */
    9999    function test_preview_standard_types_non_multidimensional() {
     100        wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
    100101        $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) );
    101102
     
    176177     */
    177178    function test_preview_standard_types_multidimensional() {
     179        wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
    178180        $_POST['customized'] = wp_slash( wp_json_encode( $this->post_data_overrides ) );
    179181
     
    315317     */
    316318    function test_preview_custom_type() {
     319        wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
    317320        $type = 'custom_type';
    318321        $post_data_overrides = array(
     
    479482     */
    480483    function test_is_current_blog_previewed() {
     484        wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
    481485        $type = 'option';
    482486        $name = 'blogname';
     
    503507        }
    504508
     509        wp_set_current_user( self::factory()->user->create( array( 'role' => 'administrator' ) ) );
    505510        $type = 'option';
    506511        $name = 'blogdescription';
     
    648653     */
    649654    public function test_multidimensional_value_when_previewed() {
     655        wp_set_current_user( $this->factory()->user->create( array( 'role' => 'administrator' ) ) );
    650656        WP_Customize_Setting::reset_aggregated_multidimensionals();
    651657
Note: See TracChangeset for help on using the changeset viewer.