WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/18/2016 08:04:36 PM (5 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/selective-refresh-ajax.php

    r37700 r38810  
    141141
    142142    /**
    143      * Make sure that the Customizer "signature" is not included in partial render responses.
    144      *
    145      * @see WP_Customize_Selective_Refresh::handle_render_partials_request()
    146      */
    147     function test_handle_render_partials_request_removes_customize_signature() {
    148         $this->setup_valid_render_partials_request_environment();
    149         $this->assertTrue( is_customize_preview() );
    150         $this->assertEquals( 1000, has_action( 'shutdown', array( $this->wp_customize, 'customize_preview_signature' ) ) );
    151         ob_start();
    152         try {
    153             $this->selective_refresh->handle_render_partials_request();
    154         } catch ( WPDieException $e ) {
    155             unset( $e );
    156         }
    157         ob_end_clean();
    158         $this->assertFalse( has_action( 'shutdown', array( $this->wp_customize, 'customize_preview_signature' ) ) );
    159     }
    160 
    161     /**
    162143     * Test WP_Customize_Selective_Refresh::handle_render_partials_request() for an unrecognized partial.
    163144     *
Note: See TracChangeset for help on using the changeset viewer.