Changeset 3388 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 06/16/2016 12:46:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r3387 r3388 1063 1063 */ 1064 1064 function wporg_themes_add_hreflang_link_attributes() { 1065 $sites = wp_cache_get( 'local-sites', 'locale-associations');1066 1067 if ( false === $sites) {1065 wp_cache_add_global_groups( array( 'locale-associations' ) ); 1066 1067 if ( false === ( $sites = wp_cache_get( 'local-sites', 'locale-associations' ) ) ) { 1068 1068 global $wpdb; 1069 1069 1070 $sites = $wpdb->get_results( 'SELECT locale, subdomain FROM locales', OBJECT_K ); 1070 1071 if ( ! $sites ) { … … 1110 1111 } ); 1111 1112 1112 wp_cache_set( 'local-sites', $sites, 'locale-associations' , DAY_IN_SECONDS);1113 wp_cache_set( 'local-sites', $sites, 'locale-associations' ); 1113 1114 } 1114 1115
Note: See TracChangeset
for help on using the changeset viewer.