Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r21136 r21070  
    1818    protected $controls = array();
    1919
    20     protected $nonce_tick;
    21 
    2220    protected $customized;
    2321
     
    311309     */
    312310    public function customize_preview_init() {
    313         $this->nonce_tick = check_ajax_referer( 'preview-customize_' . $this->get_stylesheet(), 'nonce' );
    314 
    315311        $this->prepare_controls();
    316312
     
    367363        );
    368364
    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 
    376365        foreach ( $this->settings as $id => $setting ) {
    377366            $settings['values'][ $id ] = $setting->js_value();
     
    480469            die;
    481470
    482         check_ajax_referer( 'save-customize_' . $this->get_stylesheet(), 'nonce' );
     471        check_ajax_referer( 'customize_controls-' . $this->get_stylesheet(), 'nonce' );
    483472
    484473        // Do we have to switch themes?
Note: See TracChangeset for help on using the changeset viewer.