Changes from branches/3.4/wp-includes/class-wp-customize-manager.php at r21136 to trunk/wp-includes/class-wp-customize-manager.php at r21070
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-manager.php
r21136 r21070 18 18 protected $controls = array(); 19 19 20 protected $nonce_tick;21 22 20 protected $customized; 23 21 … … 311 309 */ 312 310 public function customize_preview_init() { 313 $this->nonce_tick = check_ajax_referer( 'preview-customize_' . $this->get_stylesheet(), 'nonce' );314 315 311 $this->prepare_controls(); 316 312 … … 367 363 ); 368 364 369 if ( 2 == $this->nonce_tick ) {370 $settings['nonce'] = array(371 'save' => wp_create_nonce( 'save-customize_' . $this->get_stylesheet() ),372 'preview' => wp_create_nonce( 'preview-customize_' . $this->get_stylesheet() )373 );374 }375 376 365 foreach ( $this->settings as $id => $setting ) { 377 366 $settings['values'][ $id ] = $setting->js_value(); … … 480 469 die; 481 470 482 check_ajax_referer( ' save-customize_' . $this->get_stylesheet(), 'nonce' );471 check_ajax_referer( 'customize_controls-' . $this->get_stylesheet(), 'nonce' ); 483 472 484 473 // Do we have to switch themes?
Note: See TracChangeset
for help on using the changeset viewer.