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
This commit is contained in:
John Blackbourn 2020-03-26 17:50:15 +00:00
parent 33d4f0573c
commit 7dbad241cb
2 changed files with 2 additions and 2 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">

View File

@ -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.