Changeset 924
- Timestamp:
- 10/21/2014 11:15:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php
r826 r924 191 191 protected function grab_validators( $gp_locale ) { 192 192 global $wpdb; 193 $blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM ros_blogs INNER JOIN locales ON ros_blogs.domain = CONCAT(locales.subdomain, '.wordpress.org') WHERE locales.locale = %s", $gp_locale->wp_locale ) );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 ) ); 194 194 if ( $blog_id ) { 195 $meta_key = ' ros_' . intval( $blog_id ) . '_capabilities';195 $meta_key = 'wporg_' . intval( $blog_id ) . '_capabilities'; 196 196 return $wpdb->get_col( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$meta_key' AND meta_value NOT LIKE '%subscriber%'" ); 197 197 }
Note: See TracChangeset
for help on using the changeset viewer.