Changeset 2269
- Timestamp:
- 01/11/2016 07:55:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/wporg-gp-routes.php
r2132 r2269 31 31 32 32 // Redirect routes. 33 GP::$router->prepend( '/languages', array( ' GP_WPorg_Route_Redirector', 'redirect_languages' ) );34 GP::$router->prepend( "/languages/$path", array( ' GP_WPorg_Route_Redirector', 'redirect_languages' ) );33 GP::$router->prepend( '/languages', array( 'WPorg_GP_Route_Redirector', 'redirect_languages' ) ); 34 GP::$router->prepend( "/languages/$path", array( 'WPorg_GP_Route_Redirector', 'redirect_languages' ) ); 35 35 36 36 // Register custom routes. 37 GP::$router->prepend( '/', array( ' GP_WPorg_Route_Index', 'get_locales' ) );38 GP::$router->prepend( "/locale/$locale", array( ' GP_WPorg_Route_Locale', 'get_locale_projects' ) );39 GP::$router->prepend( "/locale/$locale/$path", array( ' GP_WPorg_Route_Locale', 'get_locale_projects' ) );40 GP::$router->prepend( "/locale/$locale/$path/$path", array( ' GP_WPorg_Route_Locale', 'get_locale_projects' ) );41 GP::$router->prepend( "/locale/$locale/$path/$path/$path", array( ' GP_WPorg_Route_Locale', 'get_locale_project' ) );42 GP::$router->prepend( '/stats/?', array( ' GP_WPorg_Route_Stats', 'get_stats_overview' ) );37 GP::$router->prepend( '/', array( 'WPorg_GP_Route_Index', 'get_locales' ) ); 38 GP::$router->prepend( "/locale/$locale", array( 'WPorg_GP_Route_Locale', 'get_locale_projects' ) ); 39 GP::$router->prepend( "/locale/$locale/$path", array( 'WPorg_GP_Route_Locale', 'get_locale_projects' ) ); 40 GP::$router->prepend( "/locale/$locale/$path/$path", array( 'WPorg_GP_Route_Locale', 'get_locale_projects' ) ); 41 GP::$router->prepend( "/locale/$locale/$path/$path/$path", array( 'WPorg_GP_Route_Locale', 'get_locale_project' ) ); 42 GP::$router->prepend( '/stats/?', array( 'WPorg_GP_Route_Stats', 'get_stats_overview' ) ); 43 43 $project = '([^/]*)/?'; 44 GP::$router->prepend( "/projects/wp-plugins/$project", array( ' GP_WPorg_Route_WP_Plugins', 'get_plugin_projects' ) );44 GP::$router->prepend( "/projects/wp-plugins/$project", array( 'WPorg_GP_Route_WP_Plugins', 'get_plugin_projects' ) ); 45 45 } 46 46 }
Note: See TracChangeset
for help on using the changeset viewer.