Ticket #41666: 41666.2.patch
| File 41666.2.patch, 1.6 KB (added by , 9 years ago) |
|---|
-
wp-includes/class-wp-http-curl.php
179 179 $this->stream_handle = @fopen( $r['filename'], 'w+' ); 180 180 else 181 181 $this->stream_handle = fopen( $r['filename'], 'w+' ); 182 if ( ! $this->stream_handle ) 183 return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) ); 182 if ( ! $this->stream_handle ) { 183 /* translators: 1: fopen() 2: file name */ 184 return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for %1$s to %2$s.' ), '<code>fopen()</code>', $r['filename'] ) ); 185 } 184 186 } else { 185 187 $this->stream_handle = false; 186 188 } -
wp-includes/class-wp-http-streams.php
223 223 $stream_handle = @fopen( $r['filename'], 'w+' ); 224 224 else 225 225 $stream_handle = fopen( $r['filename'], 'w+' ); 226 if ( ! $stream_handle ) 227 return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) ); 226 if ( ! $stream_handle ) { 227 /* translators: 1: fopen() 2: file name */ 228 return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for %1$s to %2$s.' ), '<code>fopen()</code>', $r['filename'] ) ); 229 } 228 230 229 231 $bytes_written = 0; 230 232 while ( ! feof($handle) && $keep_reading ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)