Making WordPress.org


Ignore:
Timestamp:
07/01/2021 12:25:05 AM (5 years ago)
Author:
dd32
Message:

Support Forums: Include the correct parameters when redirecting to the global search, so that Forum/Doc searches switch to the correct tab.

See #5771.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php

    r11083 r11084  
    105105                if ( $search_terms ) {
    106106                        $tab = ! empty( $_GET['tab'] ) && 'docs' === $_GET['tab'] ? 'docs' : 'forums';
    107                         $search_url = sprintf( "https://wordpress.org/search/%s/?{$tab}=1", urlencode( $search_terms ) );
     107                        $search_url = sprintf( "https://wordpress.org/search/%s/?in=support_{$tab}", urlencode( $search_terms ) );
    108108                        $search_url = esc_url_raw( $search_url );
    109109                }
Note: See TracChangeset for help on using the changeset viewer.