[wp-trac] [WordPress Trac] #50648: Different behavior for default category term with editors
WordPress Trac
noreply at wordpress.org
Fri Apr 9 19:28:35 UTC 2021
#50648: Different behavior for default category term with editors
-------------------------------+------------------------------
Reporter: enrico.sorcinelli | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.5
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+------------------------------
Comment (by johnjamesjacoby):
In addition to `category`, these core taxonomies also have defaults:
* `email_category`
* `link_category`
* `post_format`
Because of this, I believe this patch would benefit from an update to
replace the `default_category` check with something more inline with what
is in the `map_meta_cap::delete_term` check, where both `'default_' .` and
`'default_term_' . ` are checked concatenated with `$taxonomy->name`.
I also suspect adding support for `show_option_none` and
`option_none_value ` is out of scope, even though I do support the idea,
and have a hunch (but no evidence) that adding these will probably break
stuff 🤣
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50648#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list