Opened 12 years ago
Closed 12 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: | stevegrunwell | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Remove the @return values for
add_image_size()andset_post_thumbnail_size().