Check for DOMDocument when parsing oEmbed XML responses.

git-svn-id: https://develop.svn.wordpress.org/trunk@23160 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-10 22:49:45 +00:00
parent 301284fd7f
commit f2b89e27be
1 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,9 @@ class WP_oEmbed {
return false;
}
if ( ! class_exists( 'DOMDocument' ) )
return false;
$errors = libxml_use_internal_errors( true );
$old_value = null;
if ( function_exists( 'libxml_disable_entity_loader' ) ) {