Fix theme install downloads. Props josephscott. fixes #9543
git-svn-id: http://svn.automattic.com/wordpress/trunk@10942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77a7c69770
commit
7bdbfe50d7
|
@ -618,7 +618,6 @@ function do_theme_install($download_url, $theme_information = null) {
|
||||||
|
|
||||||
$theme = isset($_REQUEST['theme']) ? stripslashes( $_REQUEST['theme'] ) : '';
|
$theme = isset($_REQUEST['theme']) ? stripslashes( $_REQUEST['theme'] ) : '';
|
||||||
$theme_name = isset($_REQUEST['theme_name']) ? stripslashes( $_REQUEST['theme_name'] ) : '';
|
$theme_name = isset($_REQUEST['theme_name']) ? stripslashes( $_REQUEST['theme_name'] ) : '';
|
||||||
$download_url = isset($_REQUEST['download_url']) ? stripslashes( $_REQUEST['download_url'] ) : '';
|
|
||||||
|
|
||||||
$url = 'theme-install.php?tab=install';
|
$url = 'theme-install.php?tab=install';
|
||||||
$url = add_query_arg(array('theme' => $theme, 'theme_name' => $theme_name, 'download_url' => $download_url ), $url);
|
$url = add_query_arg(array('theme' => $theme, 'theme_name' => $theme_name, 'download_url' => $download_url ), $url);
|
||||||
|
|
Loading…
Reference in New Issue