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