In multisite, list broken themes on network/themes.php instead of on individual Manage Themes pages. see #20103.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2012-03-08 07:32:42 +00:00
parent 62cfbb074c
commit 7bac1174bf
3 changed files with 20 additions and 11 deletions
+7 -2
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( network_admin_url( 'themes.php?enabled=1' ) );
wp_safe_redirect( add_query_arg( 'enabled', 1, $referer ) );
exit;
break;
case 'disable':
@@ -244,7 +244,12 @@ if ( isset( $_GET['enabled'] ) ) {
<?php $wp_list_table->search_box( __( 'Search Installed Themes' ), 'theme' ); ?>
</form>
<?php $wp_list_table->views(); ?>
<?php
$wp_list_table->views();
if ( 'broken' == $status )
echo '<p class="clear">' . __('The following themes are installed but incomplete. Themes must have a stylesheet and a template.') . '</p>';
?>
<form method="post" action="">
<input type="hidden" name="theme_status" value="<?php echo esc_attr($status) ?>" />