]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link-parse-opml.php
WordPress 4.7.1-scripts
[autoinstalls/wordpress.git] / wp-admin / link-parse-opml.php
index c1c5e3a33b132d8dab34f33db892d7157b235c91..42bf52cefc9c75f2dadb0297e9581c3573a3e7ab 100644 (file)
@@ -9,6 +9,9 @@
 if ( ! defined('ABSPATH') )
        die();
 
+/**
+ * @global string $opml
+ */
 global $opml;
 
 /**
@@ -69,6 +72,11 @@ function endElement($parser, $tagName) {
 }
 
 // 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