mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 21:24:35 +00:00
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:
@@ -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' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user