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].
Built from https://develop.svn.wordpress.org/branches/5.1@46919


git-svn-id: http://core.svn.wordpress.org/branches/5.1@46719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-12-12 19:49:52 +00:00
parent e391320b73
commit 68b20a5136

View File

@ -3109,7 +3109,7 @@ function wp_targeted_link_rel_callback( $matches ) {
} }
$atts['rel']['whole'] = 'rel="' . esc_attr( $rel ) . '"'; $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 ) { if ( $is_escaped ) {
$link_html = preg_replace( '/[\'"]/', '\\\\$0', $link_html ); $link_html = preg_replace( '/[\'"]/', '\\\\$0', $link_html );