Check for DOMDocument when parsing oEmbed XML responses.

git-svn-id: http://core.svn.wordpress.org/branches/3.5@23161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-12-10 22:50:34 +00:00
parent 8c920c4488
commit 15adfa5298
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' ) ) {