[wp-trac] [WordPress Trac] #42482: Bizarre oEmbed Behaviour
WordPress Trac
noreply at wordpress.org
Thu Nov 9 02:24:43 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 | Keywords:
Focuses: |
----------------------------+-----------------------------
Hi all,
Banging my head against something, hoping you guys can help.
We upgraded from 4.7.2 to 4.8.2, and immediately saw an uptick in
update_post_meta calls. Took us a while to track it down, but we narrowed
it to oEmbeds. This is a weird one.
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.
Well there's our uptick in update_post_meta calls!
I've been looking at class-wp-embed.php:143 shortcode() and I can't for
the life of me figure out why this is happening. I've also looked at all
the diff of the relevant files from 4.7.2 to 4.8.2. I'm clearly missing
something.
I haven't been able to isolate when or why it does the update_post_meta to
the wrong post_id.
Anyone have any thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42482>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list