From 728a031767d406d23d26a5de819a83eade476668 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 26 Mar 2020 17:48:07 +0000 Subject: [PATCH] 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 --- src/wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index 53bb1049a7..485c7674c3 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -377,7 +377,7 @@ foreach ( $themes as $theme ) : true ) ); -if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) { +if ( ! is_multisite() && $broken_themes ) { ?>