Add a line of explanation to Html::expandAttributes
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 16 Oct 2013 15:42:07 +0000 (17:42 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 16 Oct 2013 15:42:07 +0000 (17:42 +0200)
Change-Id: I7ad453638075a5e875c6c97df10690747c2488f0

includes/Html.php

index 3fea3e1..932f753 100644 (file)
@@ -422,6 +422,7 @@ class Html {
                $ret = '';
                $attribs = (array)$attribs;
                foreach ( $attribs as $key => $value ) {
+                       // Support intuitive array( 'checked' => true/false ) form
                        if ( $value === false || is_null( $value ) ) {
                                continue;
                        }