Making WordPress.org

Changeset 3456


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

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

See #1584

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
4 edited
1 moved

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 );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php

    r3447 r3456  
    245245            'updated',
    246246            'about',
     247            'developers',
    247248            'admin',
    248249            'wp-admin',
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r3446 r3456  
    1616    '/browse/favorites/' => __( 'My Favorites', 'wporg-plugins' ),
    1717    '/browse/beta/'      => __( 'Beta Testing', 'wporg-plugins' ),
    18     '/about/'            => __( 'Developers', 'wporg-plugins' ),
     18    '/developers/'       => __( 'Developers', 'wporg-plugins' ),
    1919);
    2020
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/page-developers.php

    r3447 r3456  
    11<?php
    22/**
    3  * The template for the a out page.
     3 * The template for the Developers page.
    44 *
    55 * @package WordPressdotorg\Plugin_Directory\Theme
     
    2222                <section>
    2323                    <div class="container">
    24                         <p><?php printf( __( 'You’ve got a cool new plugin and are hoping to give it some exposure. You’re in the right place. Just <a href="%s">ask us to host it for you</a>. You’ll be able to:', 'wporg-plugins' ), esc_url( home_url( 'about/add' ) ) ); ?></p>
     24                        <p><?php printf( __( 'You’ve got a cool new plugin and are hoping to give it some exposure. You’re in the right place. Just <a href="%s">ask us to host it for you</a>. You’ll be able to:', 'wporg-plugins' ), esc_url( home_url( 'developers/add' ) ) ); ?></p>
    2525                        <ul>
    2626                            <li><?php _e( 'Keep track of how many people have downloaded it.', 'wporg-plugins' ); ?></li>
     
    4242                        <ol>
    4343                            <li><?php printf( __( '<a href="%s">Sign up</a> for an account on WordPress.org.', 'wporg-plugins' ), esc_url( 'https://wordpress.org/support/register.php' ) ); ?></li>
    44                             <li><?php printf( __( '<a href="%s">Submit your plugin for review</a>.', 'wporg-plugins' ), esc_url( home_url( 'about/add' ) ) ); ?></li>
     44                            <li><?php printf( __( '<a href="%s">Submit your plugin for review</a>.', 'wporg-plugins' ), esc_url( home_url( 'developers/add' ) ) ); ?></li>
    4545                            <li><?php printf( __( 'After your plugin is <a href="%s">manually reviewed</a>, you will either be approved or emailed and asked to provide more information and/or make corrections.', 'wporg-plugins' ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/#questions-about-submissions-and-approval' ) ); ?></li>
    4646                            <li><?php printf( __( 'Once approved, you’ll be given access to a <a id="subversion" href="%s">Subversion Repository</a> where you’ll store your plugin.', 'wporg-plugins' ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/' ) ); ?></li>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r3436 r3456  
    1212use WordPressdotorg\Plugin_Directory\Template;
    1313
    14 $content = call_user_func( array( Plugin_Directory::instance(), 'split_post_content_into_pages' ), get_the_content() );
     14$content = Plugin_Directory::instance()->split_post_content_into_pages( get_the_content() );
    1515
    1616$widget_args = array(
Note: See TracChangeset for help on using the changeset viewer.