From 9377c9a873fd2bce704e0579eea80b75ae930022 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Wed, 21 Feb 2018 23:27:00 +0000 Subject: [PATCH] Community Events Dashboard: Use wp_list_pluck rather than array_columns array_columns is only available in PHP 5.5+ Introduced in [42726] See: #41112. git-svn-id: https://develop.svn.wordpress.org/trunk@42728 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-community-events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) {