Make WordPress Core

Changeset 27880


Ignore:
Timestamp:
03/31/2014 10:32:47 PM (12 years ago)
Author:
DrewAPicture
Message:

Clarify PHPDoc return description for media_handle_upload().

Props jdgrimes.
Fixes #27519.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r27869 r27880  
    241241 * @param array $post_data allows you to overwrite some of the attachment
    242242 * @param array $overrides allows you to override the {@link wp_handle_upload()} behavior
    243  * @return int the ID of the attachment
     243 * @return int|WP_Error ID of the attachment or a WP_Error object on failure.
    244244 */
    245245function media_handle_upload($file_id, $post_id, $post_data = array(), $overrides = array( 'test_form' => false )) {
Note: See TracChangeset for help on using the changeset viewer.