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: http://svn.automattic.com/wordpress/trunk@20314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
23abe58a59
commit
107733e263
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue