[wp-trac] [WordPress Trac] #37345: register_meta has unclear error messages
WordPress Trac
noreply at wordpress.org
Tue Jul 12 21:47:32 UTC 2016
#37345: register_meta has unclear error messages
--------------------------------+------------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------------+------------------------------
Comment (by rmccue):
Rather than WP_Errors, these should probably also be `_doing_it_wrong`
errors, as they're compile-time, not runtime. Right now, it's easy to
ignore the returned value too. I'd be happy with a `_doing_it_wrong(...);
return false;`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37345#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list