Ticket #12278: media.php.diff
File media.php.diff, 938 bytes (added by , 15 years ago) |
---|
-
.php
old new 177 182 * 178 183 * @since unknown 179 184 * 180 * @param unknown_type $file_id 181 * @param unknown_type $post_id 182 * @param unknown_type $post_data 183 * @return unknown 185 * @param string $file_id Index into the {@link $_FILES} array of the upload 186 * @param integer $post_id The post ID the media is associated with 187 * @param array $post_data allows you to overwrite some of the attachment 188 * @param array $overrides allows you to override the {@link wp_handle_upload()} behavior 189 * @return integer the ID of the attachment 184 190 */ 185 function media_handle_upload($file_id, $post_id, $post_data = array()) { 186 $overrides = array('test_form'=>false); 191 function media_handle_upload($file_id, $post_id, $post_data = array(), $overrides=array('test_form'=>false)) { 187 192 188 193 $time = current_time('mysql'); 189 194 if ( $post = get_post($post_id) ) {