Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#27519 closed defect (bug) (fixed)

PHPDocs: media_handle_upload() returns a WP_Error on failure

Reported by: jdgrimes Owned by: DrewAPicture
Priority: normal Milestone: 3.9
Component: Media Version: 3.0
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

But it says:

@return int the ID of the attachment

Introduced in [13290].

Attachments (1)

27519.diff​ (712 bytes ) - added by jdgrimes 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 follow-up: @jdgrimes
13 years ago

  • Keywords has-patch added

I want to ask: Is this kind of patch discouraged? Seems kind of trivial.

#2 in reply to: ↑ 1 @DrewAPicture
13 years ago

Replying to jdgrimes:

I want to ask: Is this kind of patch discouraged? Seems kind of trivial.

Absolutely not. Welcomed and encouraged :)

#3 @DrewAPicture
13 years ago

  • Milestone Awaiting Review → 3.9

#4 @DrewAPicture
13 years ago

  • Owner set to DrewAPicture
  • Resolution → fixed
  • Status new → closed

In 27880:

Clarify PHPDoc return description for media_handle_upload().

Props jdgrimes.
Fixes #27519.

Note: See TracTickets for help on using tickets.