WordPress.org

Make WordPress Core

Changeset 46919


Ignore:
Timestamp:
12/12/2019 07:48:57 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Formatting: Use wp_list_pluck() instead of array_column() in wp_targeted_link_rel_callback().

array_column() requires PHP >= 5.5.

Follow-up to [46894].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.1/src/wp-includes/formatting.php

    r46907 r46919  
    31103110
    31113111    $atts['rel']['whole'] = 'rel="' . esc_attr( $rel ) . '"';
    3112     $link_html            = join( ' ', array_column( $atts, 'whole' ) );
     3112    $link_html            = join( ' ', wp_list_pluck( $atts, 'whole' ) );
    31133113
    31143114    if ( $is_escaped ) {
Note: See TracChangeset for help on using the changeset viewer.