From 4af2840a477c551f328b541530ef39073b05d2da Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 31 Mar 2014 22:33:15 +0000 Subject: [PATCH] Clarify PHPDoc return description for `media_handle_upload()`. Props jdgrimes. Fixes #27519. Built from https://develop.svn.wordpress.org/trunk@27880 git-svn-id: http://core.svn.wordpress.org/trunk@27711 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index dd5b53a83c..f942bb27ba 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -240,7 +240,7 @@ win.send_to_editor(''); * @param int $post_id The post ID the media is associated with * @param array $post_data allows you to overwrite some of the attachment * @param array $overrides allows you to override the {@link wp_handle_upload()} behavior - * @return int the ID of the attachment + * @return int|WP_Error ID of the attachment or a WP_Error object on failure. */ function media_handle_upload($file_id, $post_id, $post_data = array(), $overrides = array( 'test_form' => false )) {