X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/febc815b2c9d85be5717da9e8d164bd2daa97e31..16e7b37c7914d753890c1a05a9335f3b43751eb8:/wp-admin/link-parse-opml.php diff --git a/wp-admin/link-parse-opml.php b/wp-admin/link-parse-opml.php index 1d051b52..42bf52ce 100644 --- a/wp-admin/link-parse-opml.php +++ b/wp-admin/link-parse-opml.php @@ -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