WordPress.org

Make WordPress Core

Ticket #52457: 52457.patch

File 52457.patch, 500 bytes (added by ayeshrajans, 8 months ago)
  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index ac73641287..9ad132abfd 100644
    a b function get_search_query( $escaped = true ) { 
    39883988         *
    39893989         * @param mixed $search Contents of the search query variable.
    39903990         */
     3991        add_filter( 'wp_robots', 'wp_robots_no_robots' );
    39913992        $query = apply_filters( 'get_search_query', get_query_var( 's' ) );
    39923993
    39933994        if ( $escaped ) {