WordPress/wp-includes/rest-api
Adam Silverstein 524030edfa Images: enable WebP support.
Add support for uploading, editing and saving WebP images when supported by the server.

Add 'image/webp' to supported mime types. Correctly identify WebP images and sizes even when PHP doesn't support WebP. Resize uploaded WebP files (when supported) and use for front end markup.

Props markoheijne, blobfolio, Clorith, joemcgill, atjn, desrosj, spacedmonkey, marylauc, mikeschroder, hellofromtonya, flixos90.
Fixes #35725.


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


git-svn-id: http://core.svn.wordpress.org/trunk@50419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-04 14:44:58 +00:00
..
endpoints Images: enable WebP support. 2021-05-04 14:44:58 +00:00
fields REST API: Check the results of get_metadata() in WP_REST_Meta_Fields methods. 2021-04-27 18:36:04 +00:00
search REST API: Corrections and improvements to docblocks for REST API filters. 2021-01-10 22:23:09 +00:00
class-wp-rest-request.php REST API: Return detailed error information from request validation. 2021-02-02 17:28:02 +00:00
class-wp-rest-response.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-server.php REST API: Move the rest_jsonp_enabled filter before setting the Content-Type header. 2021-04-09 21:28:08 +00:00