]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/atomlib.php
WordPress 4.7.1
[autoinstalls/wordpress.git] / wp-includes / atomlib.php
index 368015adb185953b8213d4c8d3058d8d0df1492c..f2cba56361aaac15a45c5197f0cba3fdca568731 100644 (file)
@@ -121,6 +121,11 @@ class AtomParser {
 
         array_unshift($this->ns_contexts, array());
 
+        if ( ! function_exists( 'xml_parser_create_ns' ) ) {
+               trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
+               return false;
+        }
+
         $parser = xml_parser_create_ns();
         xml_set_object($parser, $this);
         xml_set_element_handler($parser, "start_element", "end_element");