Making WordPress.org

Changeset 2271


Ignore:
Timestamp:
01/11/2016 09:54:51 PM (9 years ago)
Author:
ocean90
Message:

Translate: Convert the GP plugin "wporg-specifics" to a WP plugin.

See #1352.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins
Files:
2 added
1 edited

Legend:

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

    r2270 r2271  
    2424        if ( gp_startswith( $request_uri, '/' . GP::$router->api_prefix . '/' ) ) { // API requests.
    2525            // Delete default routes.
    26             GP::$router->remove("/languages/$locale");
     26            GP::$router->remove( "/languages/$locale" );
    2727        } else {
    2828            // Delete default routes.
    29             GP::$router->remove("/languages/$locale");
    30             GP::$router->remove("/languages/$locale/$path");
     29            GP::$router->remove( "/languages/$locale" );
     30            GP::$router->remove( "/languages/$locale/$path" );
     31            GP::$router->remove( '/profile/(.+?)' );
    3132
    3233            // Redirect routes.
Note: See TracChangeset for help on using the changeset viewer.