WordPress.org

Make WordPress Core

Changeset 32471


Ignore:
Timestamp:
05/09/2015 06:26:37 PM (6 years ago)
Author:
ocean90
Message:

Merge similar error strings.

props pavelevap.
fixes #32327.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r32143 r32471  
    281281
    282282        } else if ( is_wp_error( $source_tmp_file ) ) {
    283             $source_content = new WP_Error( 'upload-error',  sprintf( __( 'Error: %s' ), sprintf( __( 'Could not download the source URL (native error: %s).' ), $source_tmp_file->get_error_message() ) ) );
     283            $source_content = new WP_Error( 'upload-error',  sprintf( __( 'ERROR: %s' ), sprintf( __( 'Could not download the source URL (native error: %s).' ), $source_tmp_file->get_error_message() ) ) );
    284284        } else if ( ! file_exists( $source_tmp_file ) ) {
    285             $source_content = new WP_Error( 'no-local-file',  sprintf( __( 'Error: %s' ), __( 'Could not save or locate the temporary download file for the source URL.' ) ) );
     285            $source_content = new WP_Error( 'no-local-file',  sprintf( __( 'ERROR: %s' ), __( 'Could not save or locate the temporary download file for the source URL.' ) ) );
    286286        }
    287287
  • trunk/src/wp-includes/atomlib.php

    r26868 r32471  
    131131
    132132            if(!xml_parse($parser, $data, feof($fp))) {
    133                 trigger_error(sprintf(__('XML error: %s at line %d')."\n",
     133                /* translators: 1: error message, 2: line number */
     134                trigger_error(sprintf(__('XML Error: %1$s at line %2$s')."\n",
    134135                    xml_error_string(xml_get_error_code($parser)),
    135136                    xml_get_current_line_number($parser)));
Note: See TracChangeset for help on using the changeset viewer.