mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
urlencode the theme name and stylesheet name in the activate links so as to support directories with + in the name. Fixes #3279.
git-svn-id: https://develop.svn.wordpress.org/trunk@6016 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0c1e57ff2b
commit
617592ce64
@ -69,7 +69,7 @@ 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);
|
||||
?>
|
||||
<div class="available-theme">
|
||||
<h3><a href="<?php echo $activate_link; ?>"><?php echo $title; ?></a></h3>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user