urldecode() the incoming $file in the theme editor. see [20313] when the encode was added. see #2994 for the original bug report. see #20103.

git-svn-id: https://develop.svn.wordpress.org/trunk@20314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-03-29 03:34:51 +00:00
parent 3b38b4a124
commit c654d0ccf0
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ get_current_screen()->set_help_sidebar(
wp_reset_vars( array( 'action', 'error', 'file', 'theme' ) );
if ( $theme )
$stylesheet = $theme;
$stylesheet = urldecode( $theme );
else
$stylesheet = get_stylesheet();
@ -73,7 +73,7 @@ if ( empty( $file ) ) {
$file = current( $allowed_files );
}
} else {
$relative_file = stripslashes( $file );
$relative_file = urldecode( stripslashes( $file ) );
$file = $theme->get_stylesheet_directory() . '/' . $relative_file;
}