We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e29404d commit 9a62502Copy full SHA for 9a62502
Function.HTML-Build-Attributes.php
@@ -5,12 +5,12 @@
5
/**
6
* Generate a string of HTML attributes
7
*
8
- * @param array $attr Associative array of attribute names and values.
+ * @param array $attr Associative array of attribute names and values.
9
* @param callable|null $callback Callback function to escape values for HTML attributes.
10
* Defaults to `htmlspecialchars()`.
11
* @return string Returns a string of HTML attributes.
12
*/
13
- function html_build_attributes( $attr, $callback = null )
+ function html_build_attributes( array $attr, callable $callback = null )
14
{
15
if ( ! count($attr) ) {
16
return '';
0 commit comments