[wp-trac] [WordPress Trac] #56793: Test tool and unit test improvements for 6.2
WordPress Trac
noreply at wordpress.org
Thu Jan 19 21:47:16 UTC 2023
#56793: Test tool and unit test improvements for 6.2
--------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"55102" 55102]:
{{{
#!CommitTicketReference repository="" revision="55102"
Tests: Correct `additional_field_get_callback()` parameters in some REST
API tests.
The second parameter passed to `get_callback` in
`WP_REST_Controller::add_additional_fields_to_object()` is the field name,
not the request details.
Includes moving the `get_callback` and `update_callback` helper functions
next to the tests they are used in.
Follow-up to [38832], [43768].
See #56793.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56793#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list