Making WordPress.org

Ticket #741: 741-api.patch

File 741-api.patch, 862 bytes (added by ocean90, 9 years ago)
  • trunk/api.wordpress.org/public_html/core/credits/wp-credits.php

     
    201201                $blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM wporg_blogs WHERE domain = %s AND path = '/'", "$subdomain.wordpress.org" ) );
    202202                if ( $blog_id ) {
    203203                        $meta_key = 'wporg_' . intval( $blog_id ) . '_capabilities';
    204                         return $wpdb->get_col( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$meta_key' AND meta_value NOT LIKE '%subscriber%'" );
     204                        return $wpdb->get_col( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%translation_editor%'" );
    205205                }
    206206                return array();
    207207        }