Making WordPress.org


Ignore:
Timestamp:
11/22/2015 07:00:56 PM (9 years ago)
Author:
ocean90
Message:

Translate: Move the wporg-stats-overview plugin into the wporg-routes plugin.

See #1352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-routes/wporg-routes.php

    r2051 r2108  
    33 * Register custom routes for translate.wordpress.org.
    44 *
    5  * @author ocean90
     5 * @author ocean90, obenland, dd32
    66 */
    77
     
    99require_once __DIR__ . '/routes/index.php';
    1010require_once __DIR__ . '/routes/locale.php';
     11require_once __DIR__ . '/routes/stats-overview.php';
    1112require_once __DIR__ . '/routes/wp-plugins.php';
    1213
     
    4344        GP::$router->prepend( "/locale/$locale/$path/$path", array( 'GP_WPorg_Route_Locale', 'get_locale_projects' ) );
    4445        GP::$router->prepend( "/locale/$locale/$path/$path/$path", array( 'GP_WPorg_Route_Locale', 'get_locale_project' ) );
    45 
     46        GP::$router->prepend( '/stats/?', array( 'GP_WPorg_Route_Stats', 'get_stats_overview' ) );
    4647        $project = '([^/]*)/?';
    4748        GP::$router->prepend( "/projects/wp-plugins/$project", array( 'GP_WPorg_Route_WP_Plugins', 'get_plugin_projects' ) );
Note: See TracChangeset for help on using the changeset viewer.