WordPress/wp-includes/rest-api/fields
spacedmonkey 9df3515569 REST API: Improve error handling in REST meta fields
This update modifies the error handling mechanism in the REST API meta fields functionality. Instead of halting execution and returning on the first encountered error, it now collects all errors in a WP_Error object and continues execution. Thus, this enhancement enables handling and displaying of multiple errors in a single response, improving the debugging process. 

Props TimothyBlynJacobs, spacedmonkey, hellofromTonya, oglekler. 
Fixes #48823.
Built from https://develop.svn.wordpress.org/trunk@57611


git-svn-id: http://core.svn.wordpress.org/trunk@57112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-02-13 09:57:08 +00:00
..
class-wp-rest-comment-meta-fields.php
class-wp-rest-meta-fields.php REST API: Improve error handling in REST meta fields 2024-02-13 09:57:08 +00:00
class-wp-rest-post-meta-fields.php
class-wp-rest-term-meta-fields.php
class-wp-rest-user-meta-fields.php