[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`
WordPress Trac
noreply at wordpress.org
Tue Jun 26 21:01:01 UTC 2018
#38323: Reconsider $object_subtype handling in `register_meta()`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: kadamwhite
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.0
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-dev-note has-unit- | Focuses: rest-api
tests |
-------------------------------------------------+-------------------------
Comment (by spacedmonkey):
So I was going to make another ticket for this, but I am not sure it makes
sense. It is a small change and it think it is cleaner if the conversion
continues here.
In [https://core.trac.wordpress.org/attachment/ticket/38323/38323
-improved-filter.diff 38323-improved-filter.diff] I refactored the code so
the `get_object_subtype_{$object_type}` now passed the object, as this is
already in memory. It add better context to the filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38323#comment:87>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list