Closed dac514 closed 4 years ago
I can fix the issue by setting:
'meta_box_sanitize_cb' => 'taxonomy_meta_box_sanitize_cb_input',
Maybe extended-cpts can just do this automatically when meta_box is dropdown?
More likely, the taxonomy_meta_box_sanitize_cb_checkboxes
needs to be fixed.
The param says @param mixed $terms
... but that's now how array_map
works.
WordPress Core Ticket: https://core.trac.wordpress.org/ticket/46338
This should be fixed by #131
Issue:
register_extended_taxonomy
withdropdown
hierarchical
set totrue
Since upgrading to WordPress 5.1.0, when I
$_POST
, I get a PHP error:The POST looks like:
tax_input[chapter-type]: -1
The value of$terms
passed totaxonomy_meta_box_sanitize_cb_checkboxes
is equal to-1
Commit that broke things:
Change in 5.1.0 that weren't in 5.0.3