Skip to content

Commit 9a62502

Browse files
authored
1 parent e29404d commit 9a62502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Function.HTML-Build-Attributes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
/**
66
* Generate a string of HTML attributes
77
*
8-
* @param array $attr Associative array of attribute names and values.
8+
* @param array $attr Associative array of attribute names and values.
99
* @param callable|null $callback Callback function to escape values for HTML attributes.
1010
* Defaults to `htmlspecialchars()`.
1111
* @return string Returns a string of HTML attributes.
1212
*/
13-
function html_build_attributes( $attr, $callback = null )
13+
function html_build_attributes( array $attr, callable $callback = null )
1414
{
1515
if ( ! count($attr) ) {
1616
return '';

0 commit comments

Comments
 (0)