Bug: CPT_TAXONOMY::wp_set_object_terms checks capabilities
-
This is a bug, and inconsistency with
wp_set_object_terms
.The CPT_TAXONOMY::wp_set_object_terms currently checks capabilities, this is wrong place to do it. Notice that wp_set_object_terms doesn’t check capabilities, for a good reason, this is a wrong place to do it. Just as wp_insert_post doesn’t check capabilities either.
Capabilities must be checked during form action handler.
I can’t use CPT_TAXONOMY::wp_set_object_terms in the front end at the moment cause it incorrectly checks capabilities.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug: CPT_TAXONOMY::wp_set_object_terms checks capabilities’ is closed to new replies.