Changeset 11930 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 09/14/2009 02:03:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r11926 r11930 571 571 return false; 572 572 } 573 573 574 574 $r = $current->response[ $theme ]; 575 575 … … 1007 1007 $stylesheet = $this->upgrader->result['destination_name']; 1008 1008 $template = !empty($theme_info['Template']) ? $theme_info['Template'] : $stylesheet; 1009 1009 1010 1010 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), trailingslashit(esc_url(get_option('home'))) ) ); 1011 1011 $activate_link = wp_nonce_url("themes.php?action=activate&template=" . urlencode($template) . "&stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template); 1012 1012 1013 1013 $update_actions = array( 1014 1014 'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>',
Note: See TracChangeset
for help on using the changeset viewer.