Making WordPress.org

Changeset 1424


Ignore:
Timestamp:
03/19/2015 07:01:22 PM (9 years ago)
Author:
ocean90
Message:

Credits API: Use the new "translation_editor" role when grabbing validators.

see #741.

File:
1 edited

Legend:

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

    r1266 r1424  
    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();
Note: See TracChangeset for help on using the changeset viewer.