Remove unnecessary `echo()`, add translator comment.
props ramiy. fixes #31873. git-svn-id: https://develop.svn.wordpress.org/trunk@31986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2563a4f802
commit
08e6f5306e
|
@ -75,9 +75,12 @@ $xml_parser = xml_parser_create();
|
|||
xml_set_element_handler($xml_parser, "startElement", "endElement");
|
||||
|
||||
if ( ! xml_parse( $xml_parser, $opml, true ) ) {
|
||||
echo(sprintf(__('XML error: %1$s at line %2$s'),
|
||||
printf(
|
||||
/* translators: 1: error message, 2: line number */
|
||||
__( 'XML Error: %1$s at line %2$s' ),
|
||||
xml_error_string( xml_get_error_code( $xml_parser ) ),
|
||||
xml_get_current_line_number($xml_parser)));
|
||||
xml_get_current_line_number( $xml_parser )
|
||||
);
|
||||
}
|
||||
|
||||
// Free up memory used by the XML parser
|
||||
|
|
Loading…
Reference in New Issue