Notice fixes. Props Viper007Bond. fixes #9508
git-svn-id: https://develop.svn.wordpress.org/trunk@10928 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bc4f2492df
commit
9d79c0cc46
@ -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)) )
|
||||
|
Loading…
Reference in New Issue
Block a user