wordpress-develop/src/wp-includes/rest-api/endpoints
Jorge Costa d2b385b7b8 Global Styles: Fix PHP warning in WP_REST_Global_Styles_Controller if no styles exist.
There is a PHP warning in WP_REST_Global_Styles_Controller because we are assuming that every theme.json has styles property, which is not always the case.

Props ntsekouras.
Fixes #54900.

git-svn-id: https://develop.svn.wordpress.org/trunk@52750 602fd350-edb4-49c9-b593-d223f7449a82
2022-02-17 13:46:27 +00:00
..
class-wp-rest-application-passwords-controller.php Application Passwords: Various docblock improvements. 2021-10-30 20:25:19 +00:00
class-wp-rest-attachments-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
class-wp-rest-autosaves-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:15:10 +00:00
class-wp-rest-block-directory-controller.php Docs: Miscellaneous docblock corrections in REST API and Sitemaps API. 2022-01-15 21:20:57 +00:00
class-wp-rest-block-renderer-controller.php Docs: Document the globals used in some REST API methods. 2021-06-30 12:33:43 +00:00
class-wp-rest-block-types-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:35:34 +00:00
class-wp-rest-blocks-controller.php Docs: Miscellaneous docblock corrections in REST API and Sitemaps API. 2022-01-15 21:20:57 +00:00
class-wp-rest-comments-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:35:34 +00:00
class-wp-rest-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
class-wp-rest-edit-site-export-controller.php REST API: Ensure that the export template endpoint returns a valid WP_Error object. 2021-12-07 18:36:29 +00:00
class-wp-rest-global-styles-controller.php Global Styles: Fix PHP warning in WP_REST_Global_Styles_Controller if no styles exist. 2022-02-17 13:46:27 +00:00
class-wp-rest-menu-items-controller.php REST API: Typo correction in a link description object. 2022-01-06 22:57:06 +00:00
class-wp-rest-menu-locations-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 18:58:59 +00:00
class-wp-rest-menus-controller.php REST API: Introduce Menu management endpoints. 2021-11-09 18:58:59 +00:00
class-wp-rest-pattern-directory-controller.php Docs: Various docblock corrections and improvements. 2021-11-23 21:35:57 +00:00
class-wp-rest-plugins-controller.php Coding Standards: Use static closures when not using $this. 2021-08-26 12:57:08 +00:00
class-wp-rest-post-statuses-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:15:10 +00:00
class-wp-rest-post-types-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:15:10 +00:00
class-wp-rest-posts-controller.php REST API: Ensure that the parent link, uses the rest_get_route_for_post function. 2021-12-13 15:19:01 +00:00
class-wp-rest-revisions-controller.php REST API: Support custom namespaces for custom post types. 2021-10-31 23:15:10 +00:00
class-wp-rest-search-controller.php Code Modernization: Fix parameter name mismatches for parent/child classes in WP_REST_Controller::prepare_item_for_response(). 2021-09-09 18:35:34 +00:00
class-wp-rest-settings-controller.php REST API: Update “object” strings to use the appropriate nouns. 2021-05-25 13:11:55 +00:00
class-wp-rest-sidebars-controller.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:19:21 +00:00
class-wp-rest-site-health-controller.php Security, Site Health: Improve accuracy in messaging about HTTPS support. 2021-01-29 19:09:49 +00:00
class-wp-rest-taxonomies-controller.php Docs: Add a @since note for the rest_namespace argument of register_post_type() and register_taxonomy(). 2021-11-01 14:29:42 +00:00
class-wp-rest-templates-controller.php Update @wordpress packages 2022-01-04 05:37:25 +00:00
class-wp-rest-terms-controller.php REST API: Add batch support for posts and terms controllers. 2021-11-09 01:57:48 +00:00
class-wp-rest-themes-controller.php Docs: Replace "Current theme" with "Active theme" in various DocBlocks. 2022-01-20 23:51:22 +00:00
class-wp-rest-url-details-controller.php Docs: Miscellaneous docblock corrections in REST API and Sitemaps API. 2022-01-15 21:20:57 +00:00
class-wp-rest-users-controller.php Add Site Editor and PHP changes from Gutenberg 10.1 - 11.9 2021-11-09 02:15:23 +00:00
class-wp-rest-widget-types-controller.php I18N: Remove redundant default text domain parameter in some __() calls. 2021-11-30 08:31:48 +00:00
class-wp-rest-widgets-controller.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:19:21 +00:00