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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user