From 964aebc2119ea7cec1f80d70b5eee6b68474b188 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 12 Dec 2019 19:48:57 +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]. git-svn-id: https://develop.svn.wordpress.org/branches/5.1@46919 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 9bbbfe0c7f..6e6dfbe0f8 100644 --- a/src/wp-includes/formatting.php +++ b/src/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 );