Skip to content

Behavior of $force_selection on Radios #13

@mrwweb

Description

@mrwweb

I just tried to use $custom_tax_mb->set( 'force_selection', true ); with radios and was surprised by the behavior to the point that I'm not sure it's right.

When $force_selection is set to false for radios, a hidden "None" option is added. When true, that option is gone but there is still no default selection of the first taxonomy term. I expected that the behavior would be more like the select implementation where the first option is defaulted to when $force_selection is true instead of a "none" option.

As it stands, I don't think $force_selection actually results in any difference in the post's term assignment when using radios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions