Ticket #4599 (closed enhancement: fixed)
XMLRPC should implement a method for deleting categories
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | XML-RPC | Version: | 2.2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | redsweater, josephscott |
Description
The wp.newCategory method is a great addition to the remote API. But it seems like it's missing its counterpart: wp.deleteCategory, or some similarly named method.
I've also been wondering whether it would have been a good idea to make the "newCategory" method a plural? If we were dealing in wp.newCategories and wp.deleteCategories it would reduce the number of separate network requests that are required when multiples are being manipulated.
Attachments
Change History
comment:2
foolswisdom — 5 years ago
- Milestone set to 2.4 (future)
Every ticket should have a milestone.
comment:4
josephscott — 4 years ago
The attached diff adds a new method, wp.deleteCategory(blog_id, username, password, category_id). Will return a 0 (zero) or a 1.
comment:5
josephscott — 4 years ago
Forgot the mention, this contains a small clean up item for wp.newCategory as well.
comment:7
josephscott — 4 years ago
Joe Cheng brought up a good point, when a category that is deleted has children be aware that all of the children will be bumped up a level.

