WordPress.org

Making WordPress.org

Changeset 9181


Ignore:
Timestamp:
10/15/2019 07:09:55 AM (6 months ago)
Author:
dd32
Message:

WordPress.org: Add a redirect for the old about/gpl page to about/license.

See #4630.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php

    r9104 r9181  
    245245        die();
    246246    }
     247
     248    // WordPress.org/about/gpl -> about/license
     249    if (
     250        'wordpress.org' == $_SERVER['HTTP_HOST'] &&
     251        preg_match( '!^/about/gpl/!i', $_SERVER['REQUEST_URI'] )
     252    ) {
     253        wp_safe_redirect( '/about/license/', 301 );
     254        die();
     255    }
    247256}
    248257add_filter( 'template_redirect', __NAMESPACE__ . '\old_page_redirects' );
Note: See TracChangeset for help on using the changeset viewer.