[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 17:26:19 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:  needs-unit-tests  |     Focuses:  rest-api
------------------------------+--------------------------

Comment (by rachelbaker):

 @jnylen0 Can you look over [attachment:38819.2.diff] for me?  I removed
 using the schema to default to `127.0.0.1` and instead try to fallback to
 the `$_SERVER['REMOTE_ADDR']` first if it is a valid IP.

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


More information about the wp-trac mailing list