From 7dbad241cbc5456f6d1b23c94d1ab4a4dec15eef Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 26 Mar 2020 17:50:15 +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 Built from https://develop.svn.wordpress.org/trunk@47510 git-svn-id: http://core.svn.wordpress.org/trunk@47285 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 53bb1049a7..485c7674c3 100644 --- a/wp-admin/themes.php +++ b/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 ) { ?>
diff --git a/wp-includes/version.php b/wp-includes/version.php index 9f3affe522..7bc6ddb21a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47509'; +$wp_version = '5.5-alpha-47510'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.