We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a152e45 commit 70b51baCopy full SHA for 70b51ba
plugins/performance-lab/includes/admin/plugins.php
@@ -291,8 +291,11 @@ static function ( string $error_message ): string {
291
</div>
292
<div class="clear"></div>
293
294
- <p>
295
- <?php
+ <?php
+ if ( current_user_can( 'activate_plugins' ) ) {
296
+ ?>
297
+ <p>
298
299
$plugins_url = add_query_arg(
300
array(
301
's' => 'WordPress Performance Team',
@@ -310,8 +313,10 @@ static function ( string $error_message ): string {
310
313
'a' => array( 'href' => true ),
311
314
)
312
315
);
- ?>
- </p>
316
317
+ </p>
318
319
+ }
320
<?php
321
}
322
0 commit comments