[wp-trac] [WordPress Trac] #25406: XMLRPC wp_getPosts $filter argument should support more values
WordPress Trac
noreply at wordpress.org
Tue Mar 4 23:19:15 UTC 2014
#25406: XMLRPC wp_getPosts $filter argument should support more values
--------------------------------------+------------------------------
Reporter: wordpressplugindeveloper | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.8
Severity: normal | Resolution:
Keywords: needs-patch dev-feedback | Focuses:
--------------------------------------+------------------------------
Changes (by maxcutler):
* keywords: needs-patch => needs-patch dev-feedback
Comment:
That `@see` line that you quoted is meant as a modifier on the paragraph
above:
{{{
The optional $filter parameter modifies the query used to retrieve posts.
Accepted keys are 'post_type', 'post_status', 'number', 'offset',
'orderby', and 'order'.
}}}
You're right that there's a doc bug that the `s` filter is missing both in
code and in the Codex, that probably deserves a simple patch.
With regards to the suggestion to pass through `$filter` to
`wp_get_recent_posts`, I think the core devs had some reservations about
that approach when we added this in 3.4. It would be nice to have more
filter parameters for richer querying, but there might have been
security/compatibility/performance concerns that made us not do this
originally.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25406#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list