~canonical-sysadmins/wordpress/4.7.3

« back to all changes in this revision

Viewing changes to wp-includes/atomlib.php

  • Committer: Haw Loeung
  • Date: 2016-12-13 06:56:21 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: haw.loeung@canonical.com-20161213065621-8tcu7u7vlxgs2s81
Merge WP4.7 from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 
122
122
        array_unshift($this->ns_contexts, array());
123
123
 
 
124
        if ( ! function_exists( 'xml_parser_create_ns' ) ) {
 
125
                trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) );
 
126
                return false;
 
127
        }
 
128
 
124
129
        $parser = xml_parser_create_ns();
125
130
        xml_set_object($parser, $this);
126
131
        xml_set_element_handler($parser, "start_element", "end_element");