wp/wp-admin/link-parse-opml.php
changeset 21 48c4eec2b7e6
parent 16 a86126ab1dd4
--- a/wp/wp-admin/link-parse-opml.php	Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-admin/link-parse-opml.php	Fri Sep 05 18:40:08 2025 +0200
@@ -16,7 +16,9 @@
 global $opml;
 
 /**
- * XML callback function for the start of a new XML tag.
+ * Starts a new XML tag.
+ *
+ * Callback function for xml_set_element_handler().
  *
  * @since 0.71
  * @access private
@@ -60,7 +62,9 @@
 }
 
 /**
- * XML callback function that is called at the end of a XML tag.
+ * Ends a new XML tag.
+ *
+ * Callback function for xml_set_element_handler().
  *
  * @since 0.71
  * @access private
@@ -74,7 +78,7 @@
 
 // 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_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." ) );
 }