Changeset 9596
- Timestamp:
- 03/17/2020 08:27:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-performance-optimizations.php
r9491 r9596 128 128 129 129 if ( $search_terms ) { 130 $search_url = sprintf( 'https://wordpress.org/search/%s/?forums=1', urlencode( $search_terms ) ); 130 $tab = ! empty( $_GET['tab'] ) && 'docs' === $_GET['tab'] ? 'docs' : 'forums'; 131 $search_url = sprintf( "https://wordpress.org/search/%s/?{$tab}=1", urlencode( $search_terms ) ); 131 132 $search_url = esc_url_raw( $search_url ); 132 133 }
Note: See TracChangeset
for help on using the changeset viewer.