Ticket #33539: wp_upload_bits.patch
| File wp_upload_bits.patch, 1.1 KB (added by , 11 years ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
5737 5737 'id' => strval( $id ), 5738 5738 'file' => $name, 5739 5739 'url' => $upload[ 'url' ], 5740 'type' => $ type5740 'type' => $upload[ 'type' ] 5741 5741 ); 5742 5742 5743 /** This filter is documented in wp-admin/includes/file.php */ 5744 return apply_filters( 'wp_handle_upload', $struct, 'upload' ); 5743 return $struct; 5745 5744 } 5746 5745 5747 5746 /* MovableType API functions -
wp-includes/functions.php
2003 2003 // Compute the URL 2004 2004 $url = $upload['url'] . "/$filename"; 2005 2005 2006 return apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $wp_filetype['type'], 'error' => false ), 'sideload' ); 2006 2007 return array( 'file' => $new_file, 'url' => $url, 'error' => false ); 2007 2008 } 2008 2009