WordPress/wp-includes/rest-api/endpoints
James Nylen d515e20a1a REST API: Fix PHP warnings when get_theme_support( 'post-formats' ) is not an array.
If `add_theme_support( 'post-formats' )` is called with no additional
arguments, then `get_theme_support( 'post-formats' )` returns `true` rather
than an array of supported formats.  Avoid generating PHP warnings in this
situation.

Props dreamon11, ChopinBach.
Fixes #39293.

Built from https://develop.svn.wordpress.org/trunk@39620


git-svn-id: http://core.svn.wordpress.org/trunk@39560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-20 00:56:44 +00:00
..
class-wp-rest-attachments-controller.php REST API: Add support for filename search in media endpoint. 2016-12-13 14:09:42 +00:00
class-wp-rest-comments-controller.php REST API: Allow sending an empty or no-op comment update. 2016-12-13 13:53:45 +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 PHP warnings when get_theme_support( 'post-formats' ) is not an array. 2016-12-20 00:56:44 +00:00
class-wp-rest-revisions-controller.php REST API: Merge similar date strings in the revisions and comments controllers. 2016-12-04 20:25:43 +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:08:41 +00:00
class-wp-rest-users-controller.php REST API: Disable DELETE requests for users in multisite. 2016-12-02 22:10:42 +00:00