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. Built from https://develop.svn.wordpress.org/trunk@54904 git-svn-id: http://core.svn.wordpress.org/trunk@54456 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c31c7aa653
commit
4b5996cd13
|
@ -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>' );
|
||||
|
|
|
@ -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' );
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-alpha-54903';
|
||||
$wp_version = '6.2-alpha-54904';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue