[wp-trac] [WordPress Trac] #38323: Reconsider $object_subtype handling in `register_meta()`
WordPress Trac
noreply at wordpress.org
Thu Jun 14 10:11:59 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 kadamwhite):
After @spacedmonkey raised performance concerns at WCEU contributor day
about the way we retrieve and throw away an entire post object in
get_object_subtype, `38323.12.diff` streamlines the way we are looking up
post type information to avoid this.
`38323.12.diff` also reinstates support for returning `comment_type`, when
available, after further conversation with @flixos90 @rmccue and others.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38323#comment:74>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list