Making WordPress.org

Changeset 924


Ignore:
Timestamp:
10/21/2014 11:15:55 PM (10 years ago)
Author:
nacin
Message:

Credits: Use new table prefix.

props markoheijnen.
fixes #664.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php

    r826 r924  
    191191    protected function grab_validators( $gp_locale ) {
    192192        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 ) );
    194194        if ( $blog_id ) {
    195             $meta_key = 'ros_' . intval( $blog_id ) . '_capabilities';
     195            $meta_key = 'wporg_' . intval( $blog_id ) . '_capabilities';
    196196            return $wpdb->get_col( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$meta_key' AND meta_value NOT LIKE '%subscriber%'" );
    197197        }
Note: See TracChangeset for help on using the changeset viewer.