Skip to content

Commit 90e84b6

Browse files
committed
1 parent 680199e commit 90e84b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Function.HTML-Build-Attributes.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
function html_build_attributes( $attr = [], $callback = 'esc_attr' )
1414
{
1515
$html = '';
16-
16+
1717
if ( count($attr) ) {
1818
$html = array_map(
1919
function ( $val, $key ) {
@@ -23,21 +23,21 @@ function ( $val, $key ) {
2323
if ( is_array( $val ) ) {
2424
$val = implode( ' ', $val );
2525
}
26-
26+
2727
if ( is_callable( $callback ) ) {
2828
$val = call_user_func( $callback, $val );
2929
}
30-
30+
3131
return sprintf( '%1$s="%2$s"', $key, $val );
3232
}
3333
},
3434
$attr,
3535
array_keys( $attr )
3636
);
37-
37+
3838
$html = implode( ' ', $html );
3939
}
40-
40+
4141
return $html;
4242
}
4343

0 commit comments

Comments
 (0)