[wp-trac] [WordPress Trac] #42482: Bizarre oEmbed Behaviour

WordPress Trac noreply at wordpress.org
Tue Nov 14 09:56:16 UTC 2017


#42482: Bizarre oEmbed Behaviour
----------------------------+------------------------------
 Reporter:  andyphillips82  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Embeds          |     Version:  4.8.2
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by swissspidy):

 Hey there,

 > Multiple posts have no oEmbeds but when I query them in the DB, they
 have 20-80 oEmbeds associated to the post_id in the postmeta table. Other
 posts' oEmbeds are somehow being associated with these posts on mass.

 That sounds like you're using embeds in widgets or somewhere else outside
 the loop.

 Up until 4.9, oEmbeds always need a post ID to be associated with. It
 could be that on your site you have manually embedded posts outside the
 loop, e.g. in the sidebar and then the oEmbeds get saved for the current
 `$GLOBALS['post']`.

 Starting with 4.9, these embeds will get stored as custom posts instead.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42482#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list