--- a/wp/wp-admin/link-parse-opml.php Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-admin/link-parse-opml.php Mon Oct 14 17:39:30 2019 +0200
@@ -9,6 +9,9 @@
if ( ! defined('ABSPATH') )
die();
+/**
+ * @global string $opml
+ */
global $opml;
/**
@@ -69,6 +72,11 @@
}
// Create an XML parser
+if ( ! function_exists( 'xml_parser_create' ) ) {
+ trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
+ wp_die( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
+}
+
$xml_parser = xml_parser_create();
// Set the functions to handle opening and closing tags