Skip to content

Commit

Permalink
Replace hardcoded URL with add_query_arg()
Browse files Browse the repository at this point in the history
Signed-off-by: Shyamsundar Gadde <[email protected]>
  • Loading branch information
ShyamGadde committed Dec 11, 2024
1 parent 5c77386 commit 8f670f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/performance-lab/includes/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,15 @@ static function ( string $error_message ): string {
printf(
/* translators: %1$s: opening anchor tag, %2$s: closing anchor tag */
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' ),
'<a href="' . esc_url( admin_url( 'plugins.php?s=WordPress%20Performance%20Team&plugin_status=all' ) ) . '">',
'<a href="' . esc_url(
add_query_arg(
array(
's' => 'WordPress Performance Team',
'plugin_status' => 'all',
),
admin_url( 'plugins.php' )
)
) . '">',
'</a>'
);
?>
Expand Down

0 comments on commit 8f670f5

Please sign in to comment.