Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#37401 closed defect (bug) (duplicate)

register_meta error messages not accurate

Reported by: chriscct7's profile chriscct7 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords:
Focuses: Cc:

Description

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"

Change History (1)

#1 @ocean90
8 years ago

  • Keywords needs-patch removed
  • Milestone 4.6 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #37345.

Note: See TracTickets for help on using tickets.