PHP error on WP 4.9.8 – class-wp-oembed
-
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’;
}
- The topic ‘PHP error on WP 4.9.8 – class-wp-oembed’ is closed to new replies.