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:
parent
301284fd7f
commit
f2b89e27be
|
@ -220,6 +220,9 @@ class WP_oEmbed {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! class_exists( 'DOMDocument' ) )
|
||||||
|
return false;
|
||||||
|
|
||||||
$errors = libxml_use_internal_errors( true );
|
$errors = libxml_use_internal_errors( true );
|
||||||
$old_value = null;
|
$old_value = null;
|
||||||
if ( function_exists( 'libxml_disable_entity_loader' ) ) {
|
if ( function_exists( 'libxml_disable_entity_loader' ) ) {
|
||||||
|
|
Loading…
Reference in New Issue