[wp-trac] [WordPress Trac] #21386: XML-RPC needs a user permission method

WordPress Trac noreply at wordpress.org
Fri Sep 12 06:59:59 UTC 2014


#21386: XML-RPC needs a user permission method
--------------------------+-----------------------------
 Reporter:  markoheijnen  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  XML-RPC       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  mobile        |     Focuses:
--------------------------+-----------------------------

Comment (by rmccue):

 Replying to [comment:18 markoheijnen]:
 > And then "no filters are run, nor would map_meta_cap() get a chance to
 do its magic." right?

 Correct; as far as I'm aware, meta caps only exist in the switch statement
 inside `map_meta_cap`, not anywhere else.

 You don't necessarily have `edit_post` on a post until the post is
 accessed, so you can't really check it in the general case. We'll probably
 add some extra fields somewhere to indicate these things (likely
 metaparameters on links or something).

 This was just to note what the current state of the code is in the REST
 API :)

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


More information about the wp-trac mailing list