Add 'Network Enable' link after installing a theme in the network admin. props PeteMall, fixes #18468.

git-svn-id: https://develop.svn.wordpress.org/trunk@18569 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-08-18 22:40:37 +00:00
parent 1881a56cb5
commit 193baf96e7
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ if ( $action ) {
check_admin_referer('enable-theme_' . $_GET['theme']);
$allowed_themes[ $_GET['theme'] ] = true;
update_site_option( 'allowedthemes', $allowed_themes );
wp_redirect( add_query_arg( 'enabled', '1', $referer ) );
wp_redirect( network_admin_url( 'themes.php?enabled=1' ) );
exit;
break;
case 'disable':