[wp-trac] [WordPress Trac] #20629: wp.getPages response includes bogus content for pages lacking edit permission

WordPress Trac wp-trac at lists.automattic.com
Fri May 11 18:06:14 UTC 2012


#20629: wp.getPages response includes bogus content for pages lacking edit
permission
--------------------------+------------------------------
 Reporter:  redsweater    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by maxcutler):

 This should really be fixed. While the current patch is the easy way, I
 wonder if a better solution would be to extract most of `wp_getPage` into
 a `_prepare_page` method like we've done in #20409 and the new 3.4
 methods.  That way the nested calls to `wp_getPage` from `wp_getPages`
 don't have to re-query for the page (even though it's a likely cache hit).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20629#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list