Make WordPress Core


Ignore:
Timestamp:
01/26/2016 11:51:17 PM (11 years ago)
Author:
westonruter
Message:

Customizer: Improve parity between JS Setting models in preview with JS Setting models in pane.

  • Ensure that Setting Value objects in preview get initial _dirty flag set if values among POST data.
  • Upon saved event, send saved message to preview with the response to trigger saved event there.
  • Reset _dirty flag for all setting Value objects in preview upon saved.
  • Continue to create settings synced from pane even after initial bootstrap, and create them as dirty.
  • Ensure that id property is set for setting Value objects in preview.

See #27355.
Fixes #35616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r36262 r36407  
    806806                        'activeSections' => array(),
    807807                        'activeControls' => array(),
     808                        '_dirty' => array_keys( $this->unsanitized_post_values() ),
    808809                );
    809810
Note: See TracChangeset for help on using the changeset viewer.