Changeset 926
- Timestamp:
- 10/21/2014 11:25:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php
r925 r926 96 96 $cache_key = array( 97 97 'translators' => 'translators-' . $gp_locale->slug . '-' . $this->version . '-' . $path, 98 'validators' => 'validators-' . $gp_locale->slug . '-' . $this->version . '-changed- 1',98 'validators' => 'validators-' . $gp_locale->slug . '-' . $this->version . '-changed-2', 99 99 ); 100 100 … … 191 191 protected function grab_validators( $gp_locale ) { 192 192 global $wpdb; 193 $blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM wporg_blogs INNER JOIN locales ON wporg_blogs.domain = CONCAT(locales.subdomain, '.wordpress.org') WHERE locales.locale = %s", $gp_locale->wp_locale ) ); 193 $subdomain = $wpdb->get_var( $wpdb->prepare( "SELECT subdomain FROM locales WHERE locale = %s", $gp_locale->wp_locale ) ); 194 $blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM wporg_blogs WHERE domain = %s AND path = '/'", "$subdomain.wordpress.org" ) ); 194 195 if ( $blog_id ) { 195 196 $meta_key = 'wporg_' . intval( $blog_id ) . '_capabilities';
Note: See TracChangeset
for help on using the changeset viewer.