Make WordPress Core

Changeset 47510


Ignore:
Timestamp:
03/26/2020 05:48:07 PM (5 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r47198 r47510  
    378378// List broken themes, if any.
    379379$broken_themes = wp_get_themes( array( 'errors' => true ) );
    380 if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
     380if ( ! is_multisite() && $broken_themes ) {
    381381    ?>
    382382
Note: See TracChangeset for help on using the changeset viewer.