[wp-trac] [WordPress Trac] #20336: XMLRPC mw_getPost never shows the post doesn't exists
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 31 13:15:37 UTC 2012
#20336: XMLRPC mw_getPost never shows the post doesn't exists
--------------------------+-----------------------------
Reporter: markoheijnen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
When you check for the capability to edit a post it also applies for not
existing posts.
So if a post ID doesn't exists it will also say you are not allowed to
edit the post.
So I guess wp_get_single_post should be before current_user_can. So the
right error message can be applied. Also the check on post_date for "no
such post" is weird
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20336>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list