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:
parent
8c920c4488
commit
15adfa5298
|
@ -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' ) ) {
|
||||
|
|
Loading…
Reference in New Issue