Skip to content

Commit 8f670f5

Browse files
committed
Replace hardcoded URL with add_query_arg()
Signed-off-by: Shyamsundar Gadde <[email protected]>
1 parent 5c77386 commit 8f670f5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,15 @@ static function ( string $error_message ): string {
296296
printf(
297297
/* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */
298298
esc_html__( 'Performance features are installed as plugins. To update features or remove them, %1$s manage them on the plugins screen. %2$s', 'performance-lab' ),
299-
'<a href="' . esc_url( admin_url( 'plugins.php?s=WordPress%20Performance%20Team&plugin_status=all' ) ) . '">',
299+
'<a href="' . esc_url(
300+
add_query_arg(
301+
array(
302+
's' => 'WordPress Performance Team',
303+
'plugin_status' => 'all',
304+
),
305+
admin_url( 'plugins.php' )
306+
)
307+
) . '">',
300308
'</a>'
301309
);
302310
?>

0 commit comments

Comments
 (0)