Ticket #24459: 24459.2.diff
| File 24459.2.diff, 873 bytes (added by , 13 years ago) |
|---|
-
wp-includes/class-wp-image-editor.php
327 327 * @return boolean 328 328 */ 329 329 protected function make_image( $filename, $function, $arguments ) { 330 $dst_file = $filename;331 332 330 // The directory containing the original file may no longer exist when using a replication plugin. 333 wp_mkdir_p( dirname( $ dst_file ) );331 wp_mkdir_p( dirname( $filename ) ); 334 332 335 333 if ( $stream = wp_is_stream( $filename ) ) { 336 $ filename= null;334 $arguments[1] = null; 337 335 ob_start(); 338 336 } 339 337 … … 342 340 if ( $result && $stream ) { 343 341 $contents = ob_get_contents(); 344 342 345 $fp = fopen( $ dst_file, 'w' );343 $fp = fopen( $filename, 'w' ); 346 344 347 345 if ( ! $fp ) 348 346 return false;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)