[wp-trac] [WordPress Trac] #18434: Retrieve post terms via XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 4 20:48:04 UTC 2012
#18434: Retrieve post terms via XML-RPC
-----------------------------+------------------------------
Reporter: nprasath002 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by maxcutler):
Replying to [comment:2 nprasath002]:
> @maxcutler
> Can u explain the use of the function prepare_term?
The idea is to have only a single place where we perform any manipulation
of term data before returning the data to the XML-RPC client.
Since term(s) are used in wp.getTerm, wp.getTerms, wp.getPostTerms,
wp.getPost, and wp.getPosts, it makes more sense to have a single function
than to have similar/duplicate code in all five.
It's currently a trivial operation, but this will make it easier to modify
in the future when/if core adds new fields to terms (like the legendary
term meta). It also is a convenient location to have a filter hook for
plugins to modify the output.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18434#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list