[wp-trac] [WordPress Trac] #24916: XML-RPC "wp_author_id" ignored when changing author to self

WordPress Trac noreply at wordpress.org
Tue Mar 24 16:54:18 UTC 2015


#24916: XML-RPC  "wp_author_id" ignored when changing author to self
-------------------------------------------------+-------------------------
 Reporter:  redsweater                           |       Owner:
     Type:  defect (bug)                         |  johnbillion
 Priority:  normal                               |      Status:  reviewing
Component:  XML-RPC                              |   Milestone:  4.2
 Severity:  normal                               |     Version:  3.8
 Keywords:  has-patch 2nd-opinion reporter-      |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------
Changes (by johnbillion):

 * keywords:  has-patch 4.2-early => has-patch 2nd-opinion reporter-feedback


Comment:

 This change makes sense, but I'm struggling to understand why the two
 `edit_others_*` permissions checks are in place here. AFAICT they are
 redundant due to the `if ( ! current_user_can( 'edit_post', $post_ID ) )`
 check near the beginning of `wp_xmlrpc_server::mw_editPost()`.

 Thoughts?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24916#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list