Making WordPress.org


Ignore:
Timestamp:
06/18/2015 06:59:30 PM (11 years ago)
Author:
ocean90
Message:

Translate: Remove a database query for slugs of translation sets in the routes plugin.

See ​https://glotpress.trac.wordpress.org/changeset/1052/.

File:
1 edited

Legend:

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

    r1586 r1674  
    123123                }
    124124
     125                if ( 'default' !== $current_set_slug && ! isset( $set_slugs[ $current_set_slug ] ) ) {
     126                        return $this->die_with_404();
     127                }
     128
    125129                if ( $set_slugs ) {
    126130                        // Make default the first item.
Note: See TracChangeset for help on using the changeset viewer.