Make WordPress Core

Ticket #49268: 49268.diff

File 49268.diff, 459 bytes (added by rebasaurus, 5 years ago)

Remove capability check on displaying broken themes

  • wp-admin/themes.php

    diff --git a/wp-admin/themes.php b/wp-admin/themes.php
    index 53bb1049a7..485c7674c3 100644
    a b foreach ( $themes as $theme ) : 
    377377<?php
    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
    383383<div class="broken-themes">