Make WordPress Core

Opened 13 months ago

Last modified 13 months ago

#23866 new enhancement

Wordpress xmlrpc wp_getPosts filter for slug

Reported by: SunWaves Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.4
Component: XML-RPC Keywords: has-patch dev-feedback
Focuses: Cc:


When using the Wordpress xmlrpc, it is sometimes very useful to get posts based off of slugs rather than post id.

A use case for this would be synchronizing or migrating two Wordpress sites with the same posts, but with different databases and post ID's.

Attachments (1)

class-wp-xmlrpc-server.diff (416 bytes) - added by SunWaves 13 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 SunWaves13 months ago

The patch enables an extra optional argument of 'name' to the xmlrpc getPosts method which will allow xmlrpc users to getPosts by slug name

comment:2 markoheijnen13 months ago

  • Keywords dev-feedback added
  • Version changed from trunk to 3.4

First if statement still using spaces instead of tabs. Also no clue if name also works for pages (pagename).

Also for syncing even the slug isn't save since slug can also not be the same. I'm not sure if we should include it or not.

Note: See TracTickets for help on using tickets.