Make WordPress Core

Ticket #59143: 59143.diff

File 59143.diff, 1.1 KB (added by adhun, 9 months ago)

This patch will show the decoded search keyword on plugins install page.

  • src/wp-admin/includes/plugin-install.php

    From efe8837e9036b1d57514dd9c25d5ff34f9f2eb38 Mon Sep 17 00:00:00 2001
    From: Adhun <adhun@awsm.in>
    Date: Fri, 18 Aug 2023 22:08:49 +0530
    Subject: [PATCH] Added urldecode on plugin install page.
    
    ---
     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..1049316956 100644
    a b function install_search_form( $deprecated = true ) { 
    337337                        _e( 'Search Plugins' );
    338338                        ?>
    339339                </label>
    340                 <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
     340                <input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( urldecode( $term ) ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
    341341                <?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
    342342        </form>
    343343        <?php