[wp-trac] [WordPress Trac] #28639: WP_Embed::cache_oembed() only works for posts and pages by default
WordPress Trac
noreply at wordpress.org
Thu Jun 26 02:54:47 UTC 2014
#28639: WP_Embed::cache_oembed() only works for posts and pages by default
--------------------------+-----------------------------
Reporter: helen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
`WP_Embed::cache_oembed()` runs an `embed_cache_oembed_types` filter on an
array of post types that just contains post and page by default. If you're
in a CPT, for instance, the async call for oEmbed caching will bail early.
This is pretty non-intuitive, and it's unclear to me what the benefit of
limiting the post types is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28639>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list