[wp-trac] [WordPress Trac] #48823: Collect all REST API meta errors at once
WordPress Trac
noreply at wordpress.org
Tue Feb 13 09:55:53 UTC 2024
#48823: Collect all REST API meta errors at once
---------------------------------------------+---------------------------
Reporter: TimothyBlynJacobs | Owner: spacedmonkey
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+---------------------------
Changes (by spacedmonkey):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57611" 57611]:
{{{
#!CommitTicketReference repository="" revision="57611"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48823#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list