WordPress.org

Make WordPress Core

Ticket #20914: 20914.diff

File 20914.diff, 838 bytes (added by duck_, 6 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    15131513                        'template'   => $template,
    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();
    15191519                $install_actions['preview']  = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr( sprintf( __('Preview &#8220;%s&#8221;'), $name ) ) . '">' . __('Preview') . '</a>';
     
    16731673
    16741674                return true;
    16751675        }
    1676 }
    1677  No newline at end of file
     1676}