mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Merge similar error strings.
props pavelevap. fixes #32327. Built from https://develop.svn.wordpress.org/trunk@32471 git-svn-id: http://core.svn.wordpress.org/trunk@32441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a6428fe295
commit
c37bdc3c9e
@ -280,9 +280,9 @@ class WP_Press_This {
|
||||
unlink( $source_tmp_file );
|
||||
|
||||
} else if ( is_wp_error( $source_tmp_file ) ) {
|
||||
$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() ) ) );
|
||||
$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() ) ) );
|
||||
} else if ( ! file_exists( $source_tmp_file ) ) {
|
||||
$source_content = new WP_Error( 'no-local-file', sprintf( __( 'Error: %s' ), __( 'Could not save or locate the temporary download file for the source URL.' ) ) );
|
||||
$source_content = new WP_Error( 'no-local-file', sprintf( __( 'ERROR: %s' ), __( 'Could not save or locate the temporary download file for the source URL.' ) ) );
|
||||
}
|
||||
|
||||
return $source_content;
|
||||
|
@ -130,7 +130,8 @@ class AtomParser {
|
||||
if($this->debug) $this->content .= $data;
|
||||
|
||||
if(!xml_parse($parser, $data, feof($fp))) {
|
||||
trigger_error(sprintf(__('XML error: %s at line %d')."\n",
|
||||
/* translators: 1: error message, 2: line number */
|
||||
trigger_error(sprintf(__('XML Error: %1$s at line %2$s')."\n",
|
||||
xml_error_string(xml_get_error_code($parser)),
|
||||
xml_get_current_line_number($parser)));
|
||||
$ret = false;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-alpha-32469';
|
||||
$wp_version = '4.3-alpha-32471';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user