Changeset 13064
- Timestamp:
- 12/18/2023 04:27:44 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-redirects.php
r13050 r13064 57 57 // Data Liberation 58 58 '/and' => '/data-liberation/', 59 60 // Playground, temporarily.61 '/playground' => [ 302, 'https://developer.wordpress.org/playground/' ]62 59 ]; 63 60 … … 290 287 exit; 291 288 } ); 289 290 /** 291 * Redirect developer.wp.org/playground/ to github documentation. 292 */ 293 add_action( 'template_redirect', function() { 294 $path = strtolower( $_SERVER['REQUEST_URI'] ?? '/' ); 295 if ( 'developer.wordpress.org' !== $_SERVER['HTTP_HOST'] || ! str_starts_with( $path, '/playground' ) ) { 296 return; 297 } 298 299 wp_redirect( 'https://wordpress.github.io/wordpress-playground/', 301 ); 300 exit; 301 } ); 302
Note: See TracChangeset
for help on using the changeset viewer.