X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/cc7b1505cd9fafd87c3672f669e13e98b0c544f7..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-admin/themes.php?ds=sidebyside diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 87678ff3..8aa783aa 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -3,16 +3,16 @@ require_once('admin.php'); if ( isset($_GET['action']) ) { check_admin_referer('switch-theme_' . $_GET['template']); - + if ('activate' == $_GET['action']) { if ( isset($_GET['template']) ) update_option('template', $_GET['template']); - + if ( isset($_GET['stylesheet']) ) update_option('stylesheet', $_GET['stylesheet']); - + do_action('switch_theme', get_current_theme()); - + wp_redirect('themes.php?activated=true'); exit; } @@ -26,7 +26,7 @@ require_once('admin-header.php');

-

View site »'), get_bloginfo('home') . '/'); ?>

+

View site »'), get_bloginfo('url') . '/'); ?>

screenshot ) : ?> <?php _e('Current theme preview'); ?> -

title, $ct->version, $ct->author) ; ?>

+

title, $ct->version, $ct->author) ; ?>

description; ?>

parent_theme) { ?>

%2$s. The stylesheet files are located in %3$s. %4$s uses templates from %5$s. Changes made to the templates will affect both themes.'), $ct->title, $ct->template_dir, $ct->stylesheet_dir, $ct->title, $ct->parent_theme); ?>

@@ -69,10 +69,10 @@ foreach ($theme_names as $theme_name) { $author = $themes[$theme_name]['Author']; $screenshot = $themes[$theme_name]['Screenshot']; $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; - $activate_link = wp_nonce_url("themes.php?action=activate&template=$template&stylesheet=$stylesheet", 'switch-theme_' . $template); + $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); ?>
-

+

@@ -102,7 +102,7 @@ if ( count($broken_themes) ) { - $title - $description - "; + + $title + $description + "; } ?>