Making WordPress.org


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

Plugin Directory: Use new table for locales.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.