From 2cdaf29678b2a978b6fb9a730b051237cf40d3b4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 24 Aug 2023 15:25:24 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@56446 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/plugin-install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php index e2c8de32f8..8bb1b61072 100644 --- a/src/wp-admin/includes/plugin-install.php +++ b/src/wp-admin/includes/plugin-install.php @@ -316,7 +316,7 @@ function install_dashboard() { */ function install_search_form( $deprecated = true ) { $type = isset( $_REQUEST['type'] ) ? wp_unslash( $_REQUEST['type'] ) : 'term'; - $term = isset( $_REQUEST['s'] ) ? wp_unslash( $_REQUEST['s'] ) : ''; + $term = isset( $_REQUEST['s'] ) ? urldecode( wp_unslash( $_REQUEST['s'] ) ) : ''; ?>