diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index a3b7e554cb..e5bc4a7627 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -21,6 +21,8 @@ class WP_oEmbed { public $providers = array(); public static $early_providers = array(); + private $compat_methods = array( '_fetch_with_format', '_parse_json', '_parse_xml', '_parse_body' ); + /** * Constructor * @@ -170,7 +172,10 @@ class WP_oEmbed { * @return mixed|bool Return value of the callback, false otherwise. */ public function __call( $name, $arguments ) { - return call_user_func_array( array( $this, $name ), $arguments ); + if ( in_array( $name, $this->compat_methods ) ) { + return call_user_func_array( array( $this, $name ), $arguments ); + } + return false; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 0c2da5b9ee..8de4ca0146 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31147'; +$wp_version = '4.2-alpha-31148'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.