Making WordPress.org

Changeset 10056


Ignore:
Timestamp:
07/10/2020 12:43:39 PM (4 years ago)
Author:
ocean90
Message:

Translate: Prevent another case where the full translation sets table is queried for existing locales, causing query timeouts.

File:
1 edited

Legend:

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

    r9720 r10056  
    7373     *
    7474     * Removes:
     75     *  - API: /languages
    7576     *  - API: /languages/$locale
    7677     *  - /languages/$locale
     
    118119        if ( gp_startswith( $request_uri, '/' . GP::$router->api_prefix . '/' ) ) { // API requests.
    119120            // Delete default routes.
     121            GP::$router->remove( '/languages' );
    120122            GP::$router->remove( "/languages/$locale" );
    121123            GP::$router->remove( '/profile' );
Note: See TracChangeset for help on using the changeset viewer.