Ticket #20784: 20784.patch
| File 20784.patch, 2.5 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/class-wp-upgrader.php
1516 1516 $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $template ); 1517 1517 1518 1518 $install_actions = array(); 1519 $install_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr( sprintf(__('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>';1520 $install_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize">' . __(' Customize') . '</a>';1519 $install_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr( sprintf( __('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>'; 1520 $install_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize">' . __('Live Preview') . '</a>'; 1521 1521 $install_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'; 1522 1522 1523 1523 if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) … … 1579 1579 ), admin_url('themes.php') ); 1580 1580 $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $template ); 1581 1581 1582 $update_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr( sprintf(__('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>';1583 $update_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize">' . __(' Customize') . '</a>';1582 $update_actions['preview'] = '<a href="' . esc_url( $preview_link ) . '" class="hide-if-customize" title="' . esc_attr( sprintf( __('Preview “%s”'), $name ) ) . '">' . __('Preview') . '</a>'; 1583 $update_actions['preview'] .= '<a href="' . wp_customize_url( $stylesheet ) . '" class="hide-if-no-customize load-customize">' . __('Live Preview') . '</a>'; 1584 1584 $update_actions['activate'] = '<a href="' . esc_url( $activate_link ) . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'; 1585 1585 1586 1586 if ( ( ! $this->result || is_wp_error( $this->result ) ) || $stylesheet == get_stylesheet() )