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:
parent
33d4f0573c
commit
7dbad241cb
|
@ -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">
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue