Making WordPress.org


Ignore:
Timestamp:
06/19/2016 10:19:37 AM (9 years ago)
Author:
dd32
Message:

Plugin Directory: Move the /about/ page to /developers/

See #1584

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r3455 r3456  
    636636            die();
    637637        }
    638         // We don't have attachments, but /$plugin/random() will hit this check.
     638
     639        // We've disabled WordPress's default 404 redirects, so we'll handle them ourselves.
    639640        if ( is_404() ) {
    640641
     
    655656            }
    656657
     658            // The about page is now over at /developers/
     659            if ( 'about' === $path[2] ) {
     660                wp_safe_redirect( home_url('/developers/' . ( ( isset( $path[3] ) && 'add' == $path[3] ) ? 'add/' : '' ) ) );
     661                die();
     662            }
     663
     664            // Otherwise, handle a plugin redirect
    657665            if ( $plugin = self::get_plugin_post( $path[2] ) ) {
    658666                $is_disabled = in_array( $plugin->post_status, array( 'disabled', 'closed' ), true );
Note: See TracChangeset for help on using the changeset viewer.