I18N: Replace function name in error message in `WP_Http_Curl::request()` and `WP_Http_Streams::request()` with a placeholder.
Props ramiy. Fixes #41666. Built from https://develop.svn.wordpress.org/trunk@41901 git-svn-id: http://core.svn.wordpress.org/trunk@41735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2bd3e23d1
commit
a859b46e92
|
@ -179,8 +179,14 @@ class WP_Http_Curl {
|
||||||
$this->stream_handle = @fopen( $r['filename'], 'w+' );
|
$this->stream_handle = @fopen( $r['filename'], 'w+' );
|
||||||
else
|
else
|
||||||
$this->stream_handle = fopen( $r['filename'], 'w+' );
|
$this->stream_handle = fopen( $r['filename'], 'w+' );
|
||||||
if ( ! $this->stream_handle )
|
if ( ! $this->stream_handle ) {
|
||||||
return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) );
|
return new WP_Error( 'http_request_failed', sprintf(
|
||||||
|
/* translators: 1: fopen() 2: file name */
|
||||||
|
__( 'Could not open handle for %1$s to %2$s.' ),
|
||||||
|
'fopen()',
|
||||||
|
$r['filename']
|
||||||
|
) );
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->stream_handle = false;
|
$this->stream_handle = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,8 +223,14 @@ class WP_Http_Streams {
|
||||||
$stream_handle = @fopen( $r['filename'], 'w+' );
|
$stream_handle = @fopen( $r['filename'], 'w+' );
|
||||||
else
|
else
|
||||||
$stream_handle = fopen( $r['filename'], 'w+' );
|
$stream_handle = fopen( $r['filename'], 'w+' );
|
||||||
if ( ! $stream_handle )
|
if ( ! $stream_handle ) {
|
||||||
return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) );
|
return new WP_Error( 'http_request_failed', sprintf(
|
||||||
|
/* translators: 1: fopen() 2: file name */
|
||||||
|
__( 'Could not open handle for %1$s to %2$s.' ),
|
||||||
|
'fopen()',
|
||||||
|
$r['filename']
|
||||||
|
) );
|
||||||
|
}
|
||||||
|
|
||||||
$bytes_written = 0;
|
$bytes_written = 0;
|
||||||
while ( ! feof($handle) && $keep_reading ) {
|
while ( ! feof($handle) && $keep_reading ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-beta2-41900';
|
$wp_version = '4.9-beta2-41901';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue