Making WordPress.org

Changeset 13077


Ignore:
Timestamp:
12/21/2023 02:52:49 PM (9 months ago)
Author:
paulkevan
Message:

Developer: add redirect to wp.org site.

File:
1 edited

Legend:

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

    r13064 r13077  
    301301} );
    302302
     303// Add wp.org redirect from developer.wp.org see: https://github.com/WordPress/wporg-developer/issues/452
     304add_action( 'parse_request', function() {
     305    $path = strtolower( $_SERVER['REQUEST_URI'] ?? '/' );
     306    if ( 'developer.wordpress.org' !== $_SERVER['HTTP_HOST'] || '/themes/getting-started/wordpress-licensing-the-gpl/' !== $path ) {
     307        return;
     308    }
     309
     310    wp_safe_redirect( ' https://wordpress.org/about/license/', 301, 'wporg dev redirect'  );
     311    exit;
     312} );
     313
Note: See TracChangeset for help on using the changeset viewer.