WordPress.org

Making WordPress.org

Ticket #664: 664.diff

File 664.diff, 1.1 KB (added by markoheijnen, 7 years ago)
  • sites/trunk/api.wordpress.org/public_html/core/credits/wp-credits.php

     
    190190
    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                }
    198198                return array();