Ticket #4599 (closed enhancement: fixed)

Opened 1 year ago

Last modified 7 months ago

XMLRPC should implement a method for deleting categories

Reported by: redsweater Assigned to: josephscott
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

xml-rpc.php.diff (1.5 kB) - added by josephscott on 11/08/07 23:57:05.

Change History

07/09/07 15:38:18 changed by josephscott

  • owner changed from anonymous to josephscott.

07/09/07 23:25:31 changed by foolswisdom

  • milestone set to 2.4 (future).

Every ticket should have a milestone.

07/17/07 09:14:37 changed by matt

+1, triple-check the SQL and escaping.

11/08/07 23:57:05 changed by josephscott

  • attachment xml-rpc.php.diff added.

11/08/07 23:59:57 changed by josephscott

The attached diff adds a new method, wp.deleteCategory(blog_id, username, password, category_id). Will return a 0 (zero) or a 1.

11/09/07 00:00:55 changed by josephscott

Forgot the mention, this contains a small clean up item for wp.newCategory as well.

11/09/07 00:02:56 changed by josephscott

  • cc changed from redsweater to redsweater, josephscott.

11/09/07 00:31:44 changed by josephscott

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.

11/09/07 00:33:38 changed by josephscott

  • keywords set to has-patch.

12/19/07 20:33:27 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [6417]) wp.deleteCategory xmlrpc method from josephscott. fixes #4599