From 68b20a5136a78f9a2d7096d773a06b1f981fc5c2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 12 Dec 2019 19:49:52 +0000 Subject: [PATCH] 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 --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index a7ecf5b310..6fd89b672c 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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 );