Skip to content

Commit 28f6c39

Browse files
authored
Merge branch 'trunk' into update/1737-follow-up
2 parents af1665b + 1d44f3a commit 28f6c39

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

plugins/performance-lab/includes/admin/plugins.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,31 @@ static function ( string $error_message ): string {
292292
<div class="clear"></div>
293293
</div>
294294
<?php
295+
if ( current_user_can( 'activate_plugins' ) ) {
296+
?>
297+
<p>
298+
<?php
299+
$plugins_url = add_query_arg(
300+
array(
301+
's' => 'WordPress Performance Team',
302+
'plugin_status' => 'all',
303+
),
304+
admin_url( 'plugins.php' )
305+
);
306+
echo wp_kses(
307+
sprintf(
308+
/* translators: %s is the URL to the plugins screen */
309+
__( 'Performance features are installed as plugins. To update features or remove them, <a href="%s">manage them on the plugins screen</a>.', 'performance-lab' ),
310+
esc_url( $plugins_url )
311+
),
312+
array(
313+
'a' => array( 'href' => true ),
314+
)
315+
);
316+
?>
317+
</p>
318+
<?php
319+
}
295320
}
296321

297322
/**

0 commit comments

Comments
 (0)