diff --git a/src/wp-admin/includes/class-wp-community-events.php b/src/wp-admin/includes/class-wp-community-events.php index 90ed6f95d5..e3fac7ae6c 100644 --- a/src/wp-admin/includes/class-wp-community-events.php +++ b/src/wp-admin/includes/class-wp-community-events.php @@ -454,7 +454,7 @@ class WP_Community_Events { } $response_body['events'] = array_slice( $response_body['events'], 0, 3 ); - $trimmed_event_types = array_column( $response_body['events'], 'type' ); + $trimmed_event_types = wp_list_pluck( $response_body['events'], 'type' ); // Make sure the soonest upcoming WordCamps is pinned in the list. if ( ! in_array( 'wordcamp', $trimmed_event_types ) && $wordcamps ) {