Changeset 11427 for sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-redirects.php
- Timestamp:
- 01/11/2022 05:00:05 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-redirects.php
r11089 r11427 12 12 13 13 // WordPress.org does not have a specific site search, only the global WordPress.org search 14 } elseif ( is_search() ) {15 wp_safe_redirect( '/search/' . urlencode( get_query_var('s') ), 301 );14 } elseif ( ! empty( $_GET['s'] ) && false === strpos( $_SERVER['REQUEST_URI'], '/search/' ) ) { 15 wp_safe_redirect( '/search/' . urlencode( wp_unslash( $_GET['s'] ) ) . '/', 301 ); 16 16 exit; 17 17
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)