equal
deleted
inserted
replaced
14 * @global string $opml |
14 * @global string $opml |
15 */ |
15 */ |
16 global $opml; |
16 global $opml; |
17 |
17 |
18 /** |
18 /** |
19 * XML callback function for the start of a new XML tag. |
19 * Starts a new XML tag. |
|
20 * |
|
21 * Callback function for xml_set_element_handler(). |
20 * |
22 * |
21 * @since 0.71 |
23 * @since 0.71 |
22 * @access private |
24 * @access private |
23 * |
25 * |
24 * @global array $names |
26 * @global array $names |
58 $descriptions[] = isset( $attrs['DESCRIPTION'] ) ? $attrs['DESCRIPTION'] : ''; |
60 $descriptions[] = isset( $attrs['DESCRIPTION'] ) ? $attrs['DESCRIPTION'] : ''; |
59 } // End if outline. |
61 } // End if outline. |
60 } |
62 } |
61 |
63 |
62 /** |
64 /** |
63 * XML callback function that is called at the end of a XML tag. |
65 * Ends a new XML tag. |
|
66 * |
|
67 * Callback function for xml_set_element_handler(). |
64 * |
68 * |
65 * @since 0.71 |
69 * @since 0.71 |
66 * @access private |
70 * @access private |
67 * |
71 * |
68 * @param resource $parser XML Parser resource. |
72 * @param resource $parser XML Parser resource. |
72 // Nothing to do. |
76 // Nothing to do. |
73 } |
77 } |
74 |
78 |
75 // Create an XML parser. |
79 // Create an XML parser. |
76 if ( ! function_exists( 'xml_parser_create' ) ) { |
80 if ( ! function_exists( 'xml_parser_create' ) ) { |
77 trigger_error( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) ); |
81 wp_trigger_error( '', __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) ); |
78 wp_die( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) ); |
82 wp_die( __( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." ) ); |
79 } |
83 } |
80 |
84 |
81 $xml_parser = xml_parser_create(); |
85 $xml_parser = xml_parser_create(); |
82 |
86 |