[wp-trac] [WordPress Trac] #50366: WordPress rest_api_init action doesn't work in PHPUnit tests
WordPress Trac
noreply at wordpress.org
Thu Jun 11 11:35:36 UTC 2020
#50366: WordPress rest_api_init action doesn't work in PHPUnit tests
--------------------------+-----------------------
Reporter: skarabeq | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: REST API | Version: 5.4.2
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Changes (by skarabeq):
* status: closed => reopened
* resolution: worksforme =>
Comment:
I think this should be fixed because this error isn't adequate for me! If
there is problem with the {{{namespace}}} parameter of the function
{{{register_rest_route}}} you have to throw adequate error message, like a
{{{The namespace parameter has incorrect value.}}} or something adequate
to know what is the real problem!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50366#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list