Theme Installer: Proper redirection and action links post-install in multisite.
Merges [28163] to the 3.9 branch. fixes #27869. Built from https://develop.svn.wordpress.org/branches/3.9@28164 git-svn-id: http://core.svn.wordpress.org/branches/3.9@27995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3dd112ef79
commit
37d4b468ea
|
@ -2233,7 +2233,7 @@ function wp_ajax_query_themes() {
|
||||||
wp_send_json_error();
|
wp_send_json_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
$update_php = self_admin_url( 'update.php?action=install-theme' );
|
$update_php = network_admin_url( 'update.php?action=install-theme' );
|
||||||
foreach ( $api->themes as &$theme ) {
|
foreach ( $api->themes as &$theme ) {
|
||||||
$theme->install_url = add_query_arg( array(
|
$theme->install_url = add_query_arg( array(
|
||||||
'theme' => $theme->slug,
|
'theme' => $theme->slug,
|
||||||
|
|
Loading…
Reference in New Issue