[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:29:59 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 jnylen0):

 > What about automatically mapping `ipv4` to `ip`

 I'm against this - it would mean that `ipv4` is lying about what it does,
 which is unexpected.  Also it's a change from behavior supported in
 previous versions.

 I think a better solution is to add `ip` and deprecate `ipv4`, and
 document it as deprecated.

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


More information about the wp-trac mailing list