Wordpress/tests
Rachel Baker aa4af7839e REST API: On Comment create, limit the ability to set the author_ip value directly.
Users without the moderate_comments capability can no longer set the `author_ip` property directly, and instead receive a `WP_Error` if they attempt to do so. Otherwise, the `author_ip property` is populated from `$_SERVER['REMOTE_ADDR']` if present and a valid IP value. Finally, fallback to 127.0.0.1 as a last resort.

Props dd32, rachelbaker, joehoyle.
Fixes #38819.

git-svn-id: https://develop.svn.wordpress.org/trunk@39302 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-18 21:12:03 +00:00
..
phpunit REST API: On Comment create, limit the ability to set the author_ip value directly. 2016-11-18 21:12:03 +00:00
qunit TinyMCE: wptextpattern: Fix inline patterns. 2016-11-06 23:37:09 +00:00