WordPress.org

Make WordPress Core

Ticket #11935: 11935.themes.diff

File 11935.themes.diff, 720 bytes (added by nacin, 4 years ago)

install_themes as well

  • wp-admin/themes.php

     
    159159 
    160160<div class="wrap"> 
    161161<?php screen_icon(); ?> 
    162 <h2><?php echo esc_html( $title ); if ( !is_multisite() || is_super_admin() ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2> 
     162<h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2> 
    163163 
    164164<h3><?php _e('Current Theme'); ?></h3> 
    165165<div id="current-theme">