mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
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:
parent
e391320b73
commit
68b20a5136
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user