From 8bda5ccc44e008b100daeb05afbc23b1463d339c Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 14 Apr 2009 15:35:33 +0000 Subject: [PATCH] Notice fixes. Props Viper007Bond. fixes #9508 git-svn-id: http://svn.automattic.com/wordpress/trunk@10928 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/theme-install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index ea52789d38..cde7d27e07 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -616,10 +616,12 @@ function do_theme_install($download_url, $theme_information = null) { return; } - $theme = isset($_REQUEST['theme']) ? stripslashes( $_REQUEST['theme'] ) : ''; + $theme = isset($_REQUEST['theme']) ? stripslashes( $_REQUEST['theme'] ) : ''; + $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 = add_query_arg(array('theme' => $theme, 'theme_name' => stripslashes( $_REQUEST['theme_name'] ), 'download_url' => stripslashes( $_REQUEST['download_url'] ) ), $url); + $url = add_query_arg(array('theme' => $theme, 'theme_name' => $theme_name, 'download_url' => $download_url ), $url); $url = wp_nonce_url($url, 'install-theme_' . $theme); if ( false === ($credentials = request_filesystem_credentials($url)) )