Changeset 5592
- Timestamp:
- 06/21/2017 05:50:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php
r5146 r5592 417 417 418 418 if ( ! empty ( $body->results ) ) { 419 $groups = wp_list_pluck( $body->results, 'group' ); 420 $group_ids = array_merge( $group_ids, wp_list_pluck( $groups, 'id' ) ); 419 foreach ( $body->results as $profile ) { 420 if ( ! isset( $profile->group->id, $profile->role ) || 'Organizer' !== $profile->role ) { 421 continue; 422 } 423 424 $group_ids[] = $profile->group->id; 425 } 421 426 } 422 427
Note: See TracChangeset
for help on using the changeset viewer.