[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`
WordPress Trac
noreply at wordpress.org
Thu Jun 14 14:14:01 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):
In [https://core.trac.wordpress.org/attachment/ticket/38323/38323.13.diff
38323.13.diff] there are the following changes.
- Added blog to `get_object_subtype` as site meta is now in core.
- Added new sub_type param to `is_protected_meta` See #44238 for
background.
- Remove comment type, as the comment rest endpoint controller doesn't
support passing comment type as this time.
- Remove array type hint from function call, as not WordPress coding
standards.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38323#comment:75>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list