Fixed select fn bug. fixes #1216
Showing
1 changed file
with
1 additions
and
1 deletions
| 1 | <?php | 1 | <?php |
| 2 | namespace Tz\WordPress\Tools\HTML; | 2 | namespace Tz\WordPress\Tools\HTML; |
| 3 | 3 | ||
| 4 | function select_opts(Array $options, $selected = null, $echo = false) { | 4 | function select_opts(Array $options, $selected = null, $echo = true) { |
| 5 | $return = ''; | 5 | $return = ''; |
| 6 | 6 | ||
| 7 | foreach ($options as $val => &$label) { | 7 | foreach ($options as $val => &$label) { | ... | ... |
-
Please register or sign in to post a comment