WordPress.org

Make WordPress Core

Ticket #11935: 11935.diff

File 11935.diff, 679 bytes (added by jamescollins, 4 years ago)

Patch against r12750

  • wp-admin/plugins.php

     
    284284 
    285285<div class="wrap"> 
    286286<?php screen_icon(); ?> 
    287 <h2><?php echo esc_html( $title ); if ( !is_multisite() || is_super_admin() ) { ?> <a href="plugin-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a><?php } ?></h2> 
     287<h2><?php echo esc_html( $title ); ?><?php if ( current_user_can('install_plugins') ) { ?> <a href="plugin-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a><?php } ?></h2> 
    288288 
    289289<?php 
    290290