Opened 10 years ago
Closed 10 years ago
#30511 closed defect (bug) (fixed)
Remove inaccurate @return values for add_image_size() and set_post_thumbnail_size() in wp-includes/media.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
The DocBlocks for bothadd_image_size()
and set_post_thumbnail_size()
have @return bool|array False, if no image was created. Metadata array on success.
, despite neither function returning any value. This appears to be a copy+paste error from image_make_intermediate_size()
, which does return the values described.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Remove the @return values for
add_image_size()
andset_post_thumbnail_size()
.