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. Built from https://develop.svn.wordpress.org/trunk@42728 git-svn-id: http://core.svn.wordpress.org/trunk@42558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54a45f6d77
commit
f4f64377b7
|
@ -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 ) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42727';
|
||||
$wp_version = '5.0-alpha-42728';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue