WordPress.org

Make WordPress Core

Changeset 21061


Ignore:
Timestamp:
06/12/12 14:36:24 (3 years ago)
Author:
nacin
Message:

Use the proper value for the switch-theme nonce in the upgrader. Fixes child theme activation after install. props duck_. fixes #20914.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r20958 r21061  
    15141514            'stylesheet' => $stylesheet, 
    15151515        ), admin_url('themes.php') ); 
    1516         $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $template ); 
     1516        $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); 
    15171517 
    15181518        $install_actions = array(); 
     
    15781578                'stylesheet' => $stylesheet, 
    15791579            ), admin_url('themes.php') ); 
    1580             $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $template ); 
     1580            $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); 
    15811581 
    15821582            if ( get_stylesheet() == $stylesheet ) { 
Note: See TracChangeset for help on using the changeset viewer.