[wp-trac] [WordPress Trac] #23020: wp.getPageList should act like wp.getPages
WordPress Trac
noreply at wordpress.org
Sun Dec 30 15:07:53 UTC 2012
#23020: wp.getPageList should act like wp.getPages
------------------------------+------------------------------
Reporter: daniloercoli | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 2.2
Severity: minor | Resolution:
Keywords: has-patch mobile |
------------------------------+------------------------------
Comment (by redsweater):
It seems like it would be harmless to add additional information e.g. the
status of a page, but changing the behavior to no longer include pages
that previously were included seems dangerous to existing clients. Is it
possible some clients are relying on the old functionality to e.g. include
trashed pages?
You might consider adding a 4th, optional parameter to wp.getPageList that
would be suitable for limiting the statuses of pages that are returned.
Then again, perhaps I'm overthinking it, but do at least think about
whether clients may be depending on the generous return values of this
method.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23020#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list