Changeset 3456 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 06/19/2016 10:19:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r3455 r3456 636 636 die(); 637 637 } 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. 639 640 if ( is_404() ) { 640 641 … … 655 656 } 656 657 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 657 665 if ( $plugin = self::get_plugin_post( $path[2] ) ) { 658 666 $is_disabled = in_array( $plugin->post_status, array( 'disabled', 'closed' ), true );
Note: See TracChangeset
for help on using the changeset viewer.