[wp-trac] [WordPress Trac] #37401: register_meta error messages not accurate
WordPress Trac
noreply at wordpress.org
Mon Jul 18 20:03:22 UTC 2016
#37401: register_meta error messages not accurate
--------------------------------+-------------------------
Reporter: chriscct7 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.6
Component: Options, Meta APIs | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------------+-------------------------
In register_meta(), many errors thrown, read like the following one: "Meta
can only be registered against a core object type." However, one can
register_meta for a non-core object by adding support via the
`wp_object_type_exists` filter.
The wording of this error can be really misleading in this case. A better
error message might read "Meta can only be registered against allowed
object types"
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37401>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list