• Resolved jorro

    (@jorro)


    Hi guys,

    I am on the latest version of the plugin (2.6.1) and my WP env is 4.9.8. The plugin says it only requires WP 4.6 and up. It seems any of the last couple of versions have changed the oEmbed requiring logic in Shortcode.php:97 and it now requires class-wp-oembed.php. But WP 4.9.8 doesn’t have such a file and the relevant functions are in embed.php.

    Here’s a patch fix I made for myself but I think should be done properly in your next version.

    Shortcode.php:97
    ————————–
    @include_once ABSPATH . ‘wp-includes/class-wp-oembed.php’;
    if (!array_search(ABSPATH . ‘wp-includes/class-wp-oembed.php’, get_included_files())) {
    include_once ABSPATH . ‘wp-includes/embed.php’;
    }

Viewing 1 replies (of 1 total)
  • Plugin Support Nahid Hasan

    (@tushar284)

    Hi @jorro,

    Thank you so much for your feedback. Actually this class “class-wp-oembed.php” got deprecated from WordPress version 5.3.0.

    Anyways, this has been addressed already and hopefully this will get resolved in next update.

    Have a nice day !

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error on WP 4.9.8 – class-wp-oembed’ is closed to new replies.