WordPress/wp-includes/rest-api/endpoints
Dion Hulse 6738759b0c REST API: Treat any falsy value as `false` in 'rest_allow_anonymous_comments'.
Extend the check in 'rest_allow_anonymous_comments' to accept any falsy value (previously this was an explicit check for `false`).

One possible failure case is that a plugin developer forgets to include a return value for some code path in their callback for this filter, leading to a value of null which is currently treated like `true`.

Props joehoyle, jnylen0.
Merges [39487] to the 4.7 branch.
Fixes #39010.

Built from https://develop.svn.wordpress.org/branches/4.7@39566


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-12 01:40:32 +00:00
..
class-wp-rest-attachments-controller.php REST API: Always fire the `rest_insert_*` actions after the related object is updated or inserted. 2016-11-23 15:33:31 +00:00
class-wp-rest-comments-controller.php REST API: Treat any falsy value as `false` in 'rest_allow_anonymous_comments'. 2016-12-12 01:40:32 +00:00
class-wp-rest-controller.php REST API: Remove rest_get_post filter and `get_post` abstraction. 2016-11-08 13:09:33 +00:00
class-wp-rest-post-statuses-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-post-types-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-posts-controller.php REST API: Fix handling of some orderby parameters for the Posts controller. 2016-12-02 22:21:33 +00:00
class-wp-rest-revisions-controller.php REST API: Merge similar date strings in the revisions and comments controllers. 2016-12-04 20:27:35 +00:00
class-wp-rest-settings-controller.php REST API: Switch to stable version of JSON Schema. 2016-11-03 02:22:29 +00:00
class-wp-rest-taxonomies-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-terms-controller.php REST API: Capability check for editing a single term should use the singular form. 2016-12-03 05:09:32 +00:00
class-wp-rest-users-controller.php REST API: Disable `DELETE` requests for users in multisite. 2016-12-02 22:16:33 +00:00