diff --git a/wp-admin/themes.php b/wp-admin/themes.php
index 53bb1049a7..539495fd98 100644
a
|
b
|
foreach ( $themes as $theme ) : |
377 | 377 | <?php |
378 | 378 | // List broken themes, if any. |
379 | 379 | $broken_themes = wp_get_themes( array( 'errors' => true ) ); |
380 | | if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) { |
| 380 | if ( ! is_multisite() && $broken_themes ) { |
381 | 381 | ?> |
382 | 382 | |
383 | 383 | <div class="broken-themes"> |
… |
… |
if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) { |
388 | 388 | $can_resume = current_user_can( 'resume_themes' ); |
389 | 389 | $can_delete = current_user_can( 'delete_themes' ); |
390 | 390 | $can_install = current_user_can( 'install_themes' ); |
| 391 | |
| 392 | if ( defined( 'DISALLOW_FILE_MODS' ) && true === DISALLOW_FILE_MODS ) { |
| 393 | $can_resume = $can_delete = $can_install = current_user_can( 'edit_theme_options' ); |
| 394 | } |
391 | 395 | ?> |
392 | 396 | <table> |
393 | 397 | <tr> |