Make WordPress Core

Changeset 54904

Timestamp:
11/29/2022 11:44:27 PM (21 months ago)
Author:
audrasjb
Message:

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.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/updates.js

    r53844 r54904  
    26552655                        /* translators: %s: Search query. */
    26562656                        __( 'Search results for: %s' ),
    2657                         '<strong>' + _.escape( data.s ) + '</strong>'
     2657                        '<strong>' + _.escape( d ) + '</strong>'
    26582658                    ) ),
    26592659                    $oldSubTitle = $( '.wrap .subtitle' );
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r54378 r54904  
    404404
    405405        if ( ! empty( $_REQUEST['s'] ) ) {
    406             $s = esc_html( wp_unslash( $_REQUEST['s'] ) );
     406            $s = esc_html( ) );
    407407
    408408            /* translators: %s: Plugin search term. */
Note: See TracChangeset for help on using the changeset viewer.