mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Plugins: Correctly display spaces in installed plugins search results.
This changeset improves searched terms URL decoding in installed plugins search results. Follow-up to [53844]. Props 254volkan, dilipbheda, audrasjb, adhun, syamraj24. Fixes #57174. git-svn-id: https://develop.svn.wordpress.org/trunk@54904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ef0c1d1dd2
commit
0fa641caca
@ -2654,7 +2654,7 @@
|
||||
sprintf(
|
||||
/* translators: %s: Search query. */
|
||||
__( 'Search results for: %s' ),
|
||||
'<strong>' + _.escape( data.s ) + '</strong>'
|
||||
'<strong>' + _.escape( decodeURIComponent( data.s ) ) + '</strong>'
|
||||
) ),
|
||||
$oldSubTitle = $( '.wrap .subtitle' );
|
||||
|
||||
|
||||
@ -403,7 +403,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||
global $plugins;
|
||||
|
||||
if ( ! empty( $_REQUEST['s'] ) ) {
|
||||
$s = esc_html( wp_unslash( $_REQUEST['s'] ) );
|
||||
$s = esc_html( urldecode( wp_unslash( $_REQUEST['s'] ) ) );
|
||||
|
||||
/* translators: %s: Plugin search term. */
|
||||
printf( __( 'No plugins found for: %s.' ), '<strong>' . $s . '</strong>' );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user