bobbingwide / oik-fields

Field formatting for custom post type (CPT) meta data, plus [bw_field], [bw_fields], [bw_new] and [bw_related] shortcodes
https://www.oik-plugins.com/oik-plugins/oik-fields-custom-post-type-field-apis/
1 stars 0 forks source link

Incorrect output for bw_theme_field_noderef when 'None' selected #19

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

When a noderef field is both #multiple and #optional and 'None' is selected then the value stored in postmeta is 0. As this is not a valid post ID it should not be included in the list of posts processed by bw_theme_field_noderef.

bobbingwide commented 8 years ago

Note: It's possible for the user to select None and other values. In this case we should simply ignore the None value.