Changeset 6139
- Timestamp:
- 11/17/2017 10:08:15 AM (7 years ago)
- 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 36 36 // Get the locale subdomain associations used to link languages to their local site. 37 37 $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. 39 39 ); 40 40 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r6118 r6139 677 677 wp_cache_add_global_groups( array( 'locale-associations' ) ); 678 678 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' ) ) ) { 680 680 681 681 // 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 ); 683 683 684 684 $sites = Plugin_I18n::instance()->get_locales();
Note: See TracChangeset
for help on using the changeset viewer.