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

View File

@@ -214,7 +214,7 @@ if ( ! current_user_can( 'switch_themes' ) ) {
<?php
// List broken themes, if any.
if ( current_user_can('edit_themes') && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) {
if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_get_themes( array( 'errors' => true ) ) ) {
?>
<h3><?php _e('Broken Themes'); ?></h3>