Skip to content

Commit

Permalink
added note about bool and int keys in choices
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Jun 12, 2015
1 parent 8d47df4 commit 22601c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions options/built-in-option-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ A list of checkboxes.
'label' => __('Label', 'fw'),
'desc' => __('Description', 'fw'),
'help' => __('Help tip', 'fw'),
'choices' => array(
'choices' => array( // Note: Avoid bool or int keys http://bit.ly/1cQgVzk
'choice-1' => __('Choice 1', 'fw'),
'choice-2' => __('Choice 2', 'fw'),
'choice-3' => __('Choice 3', 'fw'),
Expand All @@ -177,7 +177,7 @@ A list of radio buttons.
'label' => __('Label', 'fw'),
'desc' => __('Description', 'fw'),
'help' => __('Help tip', 'fw'),
'choices' => array(
'choices' => array( // Note: Avoid bool or int keys http://bit.ly/1cQgVzk
'choice-1' => __('Choice 1', 'fw'),
'choice-2' => __('Choice 2', 'fw'),
'choice-3' => __('Choice 3', 'fw'),
Expand Down

0 comments on commit 22601c7

Please sign in to comment.