WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/02/2015 07:00:08 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Remove unnecessary echo(), add translator comment.

props ramiy.
fixes #31873.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/link-parse-opml.php

    r29206 r31986  
    7575xml_set_element_handler($xml_parser, "startElement", "endElement");
    7676
    77 if (!xml_parse($xml_parser, $opml, true)) {
    78     echo(sprintf(__('XML error: %1$s at line %2$s'),
    79     xml_error_string(xml_get_error_code($xml_parser)),
    80     xml_get_current_line_number($xml_parser)));
     77if ( ! xml_parse( $xml_parser, $opml, true ) ) {
     78    printf(
     79        /* translators: 1: error message, 2: line number */
     80        __( 'XML Error: %1$s at line %2$s' ),
     81        xml_error_string( xml_get_error_code( $xml_parser ) ),
     82        xml_get_current_line_number( $xml_parser )
     83    );
    8184}
    8285
Note: See TracChangeset for help on using the changeset viewer.