• Resolved danhgilmore

    (@danhgilmore)


    We have an internal installation of WordPress multisite and we also have a homegrown video sharing application. The video app provides code that can be placed in a blog post that will display the video in a player. The provided short code is something like [embed width='640' height='360'] (our custom stuff here) [/embed].

    In order to make this work, I added the following code to a MS plugin:

    add_action('plugins_loaded','add_oembed_ivideo');
    function add_oembed_ivideo()
    {
        global $my_oembed_url;
    
        $string = $my_oembed_url . '*';
        $provider = $my_oembed_url .  'videoUtils.asmx/oEmbedBlogs';
        wp_oembed_add_provider($string, $provider);
    }

    It has worked for quite a while, but now it simply displays a hyperlink of the short code provided from our video application. Unfortunately, it’s on an installation that isn’t used much, and I can’t determine when the problem started.

    Would anyone know where to start troubleshooting?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter danhgilmore

    (@danhgilmore)

    Figured out the problem: Our internal network uses private IP address, and wp_safe_remote_get() in wp-includes/class-oembed.php was returning an error A valid URL was not provided.

    I’ll be whitelisting the IPs to fix this 🙂

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Geez Dan. If you’re going post to the forums then you should at least pretend to let other people help you out. 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom oEmbed site no longer working’ is closed to new replies.