WordPress.org

Make WordPress Core

Changeset 42728


Ignore:
Timestamp:
02/21/2018 11:27:00 PM (3 years ago)
Author:
jorbin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-community-events.php

    r42726 r42728  
    455455
    456456            $response_body['events'] = array_slice( $response_body['events'], 0, 3 );
    457             $trimmed_event_types     = array_column( $response_body['events'], 'type' );
     457            $trimmed_event_types     = wp_list_pluck( $response_body['events'], 'type' );
    458458
    459459            // Make sure the soonest upcoming WordCamps is pinned in the list.
Note: See TracChangeset for help on using the changeset viewer.