WordPress.org

Making WordPress.org

Changeset 1266


Ignore:
Timestamp:
02/17/2015 06:38:27 AM (5 years ago)
Author:
coffee2code
Message:

Credits API: Prevent group members with mixed case names from also being listed as Contributing Developers

Some members via groups() have mixed case names, but names via props() are all lowercase, so the array_diff() didn't filter out some people from getting double props.

Fixes #432

File:
1 edited

Legend:

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

    r1167 r1266  
    245245                $person = (array) $person;
    246246                $new_data = array( 'name' => $person[0], 'hash' => '', 'username' => $k, 'title' => '' );
    247                 $this->names_in_groups[] = $k;
     247                $this->names_in_groups[] = strtolower( $k );
    248248
    249249                if ( ! empty( $person[2] ) ) {
Note: See TracChangeset for help on using the changeset viewer.