[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`
WordPress Trac
noreply at wordpress.org
Thu Jun 14 17:04:31 UTC 2018
#38323: Reconsider $object_subtype handling in `register_meta()`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: kadamwhite
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.0
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note has-unit- | Focuses: rest-api
tests |
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
38323.14.diff
Fixed the unit tests running. In `get_object_subtype` was not passing
object_id to `get_post_type`. Fixed now.
Also defaulted `is_protected_meta` to sub type to empty thing, like
get_object_subtype.
Fixed formatting.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38323#comment:76>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list