[wp-trac] [WordPress Trac] #38818: REST API: Support ipv6 for `author_ip` in comments endpoint

WordPress Trac noreply at wordpress.org
Wed Nov 16 13:01:20 UTC 2016


#38818: REST API: Support ipv6 for `author_ip` in comments endpoint
--------------------------+-------------------------
 Reporter:  dd32          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  rest-api      |
--------------------------+-------------------------
 The comments endpoint currently accepts a `author_ip` field, however
 sanitizes it to be an `IPv4` address, and as a result rejects IPv6
 addresses.

 IPv6 is supported out of the box by WordPress and in all other comment
 APIs, and so should be supported.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38818>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list