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].

git-svn-id: https://develop.svn.wordpress.org/branches/5.1@46919 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-12-12 19:48:57 +00:00
parent 57715e4b4b
commit 964aebc211

View File

@ -3109,7 +3109,7 @@ function wp_targeted_link_rel_callback( $matches ) {
}
$atts['rel']['whole'] = 'rel="' . esc_attr( $rel ) . '"';
$link_html = join( ' ', array_column( $atts, 'whole' ) );
$link_html = join( ' ', wp_list_pluck( $atts, 'whole' ) );
if ( $is_escaped ) {
$link_html = preg_replace( '/[\'"]/', '\\\\$0', $link_html );