Making WordPress.org


Ignore:
Timestamp:
01/31/2016 10:58:15 PM (8 years ago)
Author:
ocean90
Message:

Translate: Add child pages to plugin projects to show contributors and language packs, first pass.

See #1388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/wporg-gp-routes.php

    r2278 r2439  
    4343     *  - /stats/?
    4444     *  - /projects/wp-plugins/$project
     45     *  - /projects/wp-plugins/$project/contributors
     46     *  - /projects/wp-plugins/$project/language-packs
    4547     */
    4648    public function register_routes() {
     
    7173            $project = '([^/]*)/?';
    7274            GP::$router->prepend( "/projects/wp-plugins/$project", array( 'WPorg_GP_Route_WP_Plugins', 'get_plugin_projects' ) );
     75            GP::$router->prepend( "/projects/wp-plugins/$project/contributors", array( 'WPorg_GP_Route_WP_Plugins', 'get_plugin_contributors' ) );
     76            GP::$router->prepend( "/projects/wp-plugins/$project/language-packs", array( 'WPorg_GP_Route_WP_Plugins', 'get_plugin_language_packs' ) );
    7377        }
    7478    }
Note: See TracChangeset for help on using the changeset viewer.