[wp-trac] [WordPress Trac] #38819: REST API: Limit what users can set `author_ip` in the Comments endpoint
WordPress Trac
noreply at wordpress.org
Thu Nov 17 02:32:46 UTC 2016
#38819: REST API: Limit what users can set `author_ip` in the Comments endpoint
------------------------------+-----------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests | Focuses: rest-api
------------------------------+-----------------------
Changes (by jnylen0):
* keywords: => needs-unit-tests
Comment:
Needs tests and missing an operator space: `!empty` → `! empty`.
To resolve the `default` issue we should remove the default of 127.0.0.1
and add it as a fallback case if there is no other way to determine an IP.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38819#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list