Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Weird oEmbed Behaviour

Discussion in 'Troubleshooting & How-To's' started by NullTransient, Nov 8, 2017.

  1. NullTransient

    New Member

    Joined:
    Nov 8, 2017
    Messages:
    1
    Likes Received:
    0
    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?
     
    #1
  2. Sean Quinn

    Member

    Joined:
    Sep 30, 2017
    Messages:
    32
    Likes Received:
    0
    #2
  3. Charlie Chandra

    New Member

    Joined:
    Nov 9, 2017
    Messages:
    8
    Likes Received:
    0
  4. Sean Quinn

    Member

    Joined:
    Sep 30, 2017
    Messages:
    32
    Likes Received:
    0
    #4

Share This Page

Web Hosting