WordPress.org

Making WordPress.org

Changeset 6139


Ignore:
Timestamp:
11/17/2017 10:08:15 AM (8 months ago)
Author:
ocean90
Message:

Plugin Directory: Use new table for locales.

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

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-locale-banner.php

    r6121 r6139  
    3636        // Get the locale subdomain associations used to link languages to their local site.
    3737        $locale_subdomain_assoc = $wpdb->get_results(
    38             "SELECT locale, subdomain FROM locales WHERE locale NOT LIKE '%\_%\_%'", OBJECT_K // Don't grab variants, for now.
     38            "SELECT locale, subdomain FROM locales WHERE wporg_locale NOT LIKE '%\_%\_%'", OBJECT_K // Don't grab variants, for now.
    3939        );
    4040
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r6118 r6139  
    677677        wp_cache_add_global_groups( array( 'locale-associations' ) );
    678678
    679         if ( false === ( $sites = wp_cache_get( 'local-sites-'.get_post()->post_name, 'locale-associations' ) ) ) {
     679        if ( false === ( $sites = wp_cache_get( 'local-sites-' . get_post()->post_name, 'locale-associations' ) ) ) {
    680680
    681681            // get subdomain/locale associations
    682             $subdomains = $wpdb->get_results( 'SELECT locale, subdomain FROM locales', OBJECT_K );
     682            $subdomains = $wpdb->get_results( 'SELECT locale, subdomain FROM wporg_locales', OBJECT_K );
    683683
    684684            $sites = Plugin_I18n::instance()->get_locales();
Note: See TracChangeset for help on using the changeset viewer.