Changeset 10233 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 09/03/2020 02:14:02 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r10215 r10233 1191 1191 $vars[] = 'plugin_advanced'; 1192 1192 $vars[] = 'geopattern_icon'; 1193 $vars[] = 'block_search'; 1193 1194 1194 1195 // Remove support for any query vars the Plugin Directory doesn't support/need. … … 1338 1339 // New-style search links. 1339 1340 if ( get_query_var( 's' ) && isset( $_GET['s'] ) ) { 1340 wp_safe_redirect( site_url( '/search/' . urlencode( get_query_var( 's' ) ) . '/' ), 301 ); 1341 $url = site_url( '/search/' . urlencode( get_query_var( 's' ) ) . '/' ); 1342 if ( get_query_var( 'block_search' ) ) { 1343 $url = add_query_arg( 'block_search', get_query_var( 'block_search' ), $url ); 1344 } 1345 1346 wp_safe_redirect( $url, 301 ); 1341 1347 die(); 1342 1348 }
Note: See TracChangeset
for help on using the changeset viewer.