Make WordPress Core

Ticket #12278: media.php.diff

File media.php.diff, 938 bytes (added by tychay, 15 years ago)

patch to wp-admin/includes/media.php

  • .php

    old new  
    177182 *
    178183 * @since unknown
    179184 *
    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
    184190 */
    185 function media_handle_upload($file_id, $post_id, $post_data = array()) {
    186         $overrides = array('test_form'=>false);
     191function media_handle_upload($file_id, $post_id, $post_data = array(), $overrides=array('test_form'=>false)) {
    187192
    188193        $time = current_time('mysql');
    189194        if ( $post = get_post($post_id) ) {