Opened 11 years ago
Last modified 6 years ago
#25037 assigned defect (bug)
XML-RPC : Can't remove all the categories from a post by using metaWeblog.editPost
Reported by: | daniloercoli | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.6 |
Component: | XML-RPC | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Seems that you can't remove all the categories from a post by calling mw_editPost.
I tried both passing an empty array, or skipping the entry 'categories', in the content struct, but none of them worked. The post still has the previous categories attached to it.
Change History (8)
#4
follow-up:
↓ 5
@
11 years ago
FWIW removing "all" categories for a post works when using mt.setPostCategories, providing an empty array.
nacin's comment about it always being required that there is one category seems to be true, when I remove all categories using this technique, the post acquires the single category "Uncategorized" (default category?) as a result.
#5
in reply to:
↑ 4
@
11 years ago
Replying to redsweater:
nacin's comment about it always being required that there is one category seems to be true, when I remove all categories using this technique, the post acquires the single category "Uncategorized" (default category?) as a result.
Yes, that's what I was expecting when removing "all" categories for a post.
Posts must have at least one category (this is "soft" in core but may be strictly enforced in XML-RPC) — attempting to remove *all* categories without leaving one may be the issue.