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:
parent
f5550907e1
commit
728a031767
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue