Make WordPress Core

Changeset 56446


Ignore:
Timestamp:
08/24/2023 03:25:24 PM (8 months ago)
Author:
swissspidy
Message:

Plugins: Correctly display spaces in new plugins search results.

Ensures the encoded search term in the input field is correctly decoded again.

Follow-up to [53844] and [54904].

Props adhun, nithi22, huzaifaalmesbah, deepakvijayan, zunaid321, iammehedi1.
Fixes #59143.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r56176 r56446  
    317317function install_search_form( $deprecated = true ) {
    318318    $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term';
    319     $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : '';
     319    $term = isset( $_REQUEST['s'] ) ? urldecode( wp_unslash( $_REQUEST['s'] ) ) : '';
    320320    ?>
    321321    <form class="search-form search-plugins" method="get">
Note: See TracChangeset for help on using the changeset viewer.