Make WordPress Core

Opened 11 years ago

Last modified 5 years ago

#23866 new enhancement

WordPress xmlrpc wp_getPosts filter for slug

Reported by: sunwaves's profile SunWaves Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: XML-RPC Keywords: dev-feedback needs-refresh
Focuses: Cc:

Description

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 11 years ago.

Download all attachments as: .zip

Change History (5)

#1 @SunWaves
11 years 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

#2 @markoheijnen
11 years 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.

#3 @chriscct7
9 years ago

  • Keywords needs-refresh added; has-patch removed

#4 @samuelsidler
9 years ago

  • Summary changed from Wordpress xmlrpc wp_getPosts filter for slug to WordPress xmlrpc wp_getPosts filter for slug
Note: See TracTickets for help on using tickets.