Making WordPress.org

Changeset 14971


Ignore:
Timestamp:
07/15/2026 01:27:48 PM (2 months ago)
Author:
akirk
Message:

Playground: Remove developer.wordpress.org/playground redirect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-redirects.php

    r14925 r14971  
    311311} );
    312312
    313 /**
    314  * Redirect developer.wp.org/playground/ to github documentation.
    315  */
    316 add_action( 'template_redirect', function() {
    317         $path = strtolower( $_SERVER['REQUEST_URI'] ?? '/' );
    318         if ( 'developer.wordpress.org' !== $_SERVER['HTTP_HOST'] || ! str_starts_with( $path, '/playground' ) ) {
    319                 return;
    320         }
    321 
    322         wp_redirect( 'https://wordpress.github.io/wordpress-playground/', 301 );
    323         exit;
    324 } );
    325 
    326313// Add wp.org redirect from developer.wp.org see: https://github.com/WordPress/wporg-developer/issues/452
    327314add_action( 'parse_request', function() {
Note: See TracChangeset for help on using the changeset viewer.