Changeset 3388
- Timestamp:
- 06/16/2016 12:46:27 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 2 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 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r3386 r3388 114 114 */ 115 115 function hreflang_link_attributes() { 116 wp_cache_add_global_groups( array( 'locale-associations' ) ); 116 117 117 118 if ( false === ( $sites = wp_cache_get( 'local-sites', 'locale-associations' ) ) ) { … … 161 162 } ); 162 163 163 wp_cache_set( 'local-sites', $sites, 'locale-associations' , DAY_IN_SECONDS);164 wp_cache_set( 'local-sites', $sites, 'locale-associations' ); 164 165 } 165 166
Note: See TracChangeset
for help on using the changeset viewer.