[wp-trac] [WordPress Trac] #50493: more detailed notice for register_rest_route
WordPress Trac
noreply at wordpress.org
Fri Jul 17 01:59:03 UTC 2020
#50493: more detailed notice for register_rest_route
--------------------------+-----------------------------
Reporter: Lwangaman | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: REST API | Version: 5.4.2
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
--------------------------+-----------------------------
Comment (by TimothyBlynJacobs):
Thanks for the patch @Lwangaman!
I think we should make the namespace and route part of the translated
error message itself. I don't think I've seen Core using a pattern similar
to what you have in your patch. An example to look at would be
`_wp_scripts_maybe_doing_it_wrong`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50493#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list