Themes: Always list broken themes even if the user cannot take a corresponding action within the admin area.

This prevents broken themes being hidden when the `DISALLOW_FILE_MODS` constant is in use.

Props rebasaurus

Fixes #49268

git-svn-id: https://develop.svn.wordpress.org/trunk@47510 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2020-03-26 17:48:07 +00:00
parent f5550907e1
commit 728a031767
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ foreach ( $themes as $theme ) :
<?php
// List broken themes, if any.
$broken_themes = wp_get_themes( array( 'errors' => true ) );
if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
if ( ! is_multisite() && $broken_themes ) {
?>
<div class="broken-themes">