[wp-trac] [WordPress Trac] #38819: REST API: Limit what users can set `author_ip` in the Comments endpoint

WordPress Trac noreply at wordpress.org
Fri Nov 18 21:06:59 UTC 2016


#38819: REST API: Limit what users can set `author_ip` in the Comments endpoint
------------------------------+--------------------------
 Reporter:  dd32              |       Owner:  rachelbaker
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.7
Component:  Comments          |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  rest-api
------------------------------+--------------------------

Comment (by rachelbaker):

 I was thinking not returning an error anytime `author_ip` is set would be
 inconsistent (if moderate_comments fails).  But after discussing with
 @joehoyle via Slack, [attachment:38819.4.diff] looks to be a winner.

 Slack discussion for reference:
 https://wordpress.slack.com/archives/core-restapi/p1479502640001805

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


More information about the wp-trac mailing list