| 1 | Index: wp-admin/plugins.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/plugins.php (revision 12750) |
|---|
| 4 | +++ wp-admin/plugins.php (working copy) |
|---|
| 5 | @@ -284,7 +284,7 @@ |
|---|
| 6 | |
|---|
| 7 | <div class="wrap"> |
|---|
| 8 | <?php screen_icon(); ?> |
|---|
| 9 | -<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> |
|---|
| 10 | +<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> |
|---|
| 11 | |
|---|
| 12 | <?php |
|---|
| 13 | |
|---|