]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/link-parse-opml.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-admin / link-parse-opml.php
index 1d051b523729e73a42c3d2825fc3038a2317f533..42bf52cefc9c75f2dadb0297e9581c3573a3e7ab 100644 (file)
@@ -72,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