WordPress.org

Make WordPress Core

Ticket #14927: fix-search-query-display-no-js.diff

File fix-search-query-display-no-js.diff, 504 bytes (added by westi, 7 years ago)

Fix search box population

  • public/wp-admin/includes/template.php

    ### Eclipse Workspace Patch 1.0
    #P trunk.domain
     
    15271527 *
    15281528 */
    15291529function _admin_search_query() {
    1530         echo isset($_GET['s']) ? esc_attr( stripslashes( $_GET['s'] ) ) : '';
     1530        echo isset($_REQUEST['s']) ? esc_attr( stripslashes( $_REQUEST['s'] ) ) : '';
    15311531}
    15321532
    15331533/**