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

WordPress Trac noreply at wordpress.org
Thu Nov 17 02:22:05 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                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  rest-api
  testing needs-refresh                          |
-------------------------------------------------+-------------------------

Comment (by rmccue):

 Replying to [comment:5 dd32]:
 > As for validating IPv6 addresses, that's a super-complex regex AFAIK, we
 may be able to borrow/call/re-use something from `src/wp-
 includes/Requests/IPv6.php`

 `Requests_IPv6::check_ipv6()` can be used directly to check this.

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


More information about the wp-trac mailing list