Changeset 13050
- Timestamp:
- 12/12/2023 03:07:20 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-redirects.php
r13044 r13050 57 57 // Data Liberation 58 58 '/and' => '/data-liberation/', 59 60 // Playground, temporarily. 61 '/playground' => [ 302, 'https://developer.wordpress.org/playground/' ] 59 62 ]; 60 63 61 64 foreach ( $path_redirects as $test => $redirect ) { 62 65 if ( 0 === strpos( $_SERVER['REQUEST_URI'], $test ) ) { 66 67 $code = 301; 68 if ( is_array( $redirect ) ) { 69 list( $code, $redirect ) = $redirect; 70 } 63 71 64 72 // override nocache_headers(); … … 66 74 header_remove( 'cache-control' ); 67 75 68 wp_safe_redirect( $redirect, 301);76 wp_safe_redirect( $redirect, $code ); 69 77 exit; 70 78 }
Note: See TracChangeset
for help on using the changeset viewer.