[wp-trac] [WordPress Trac] #30511: Remove inaccurate @return values for add_image_size() and set_post_thumbnail_size() in wp-includes/media.php

WordPress Trac noreply at wordpress.org
Wed Nov 26 20:07:55 UTC 2014


#30511: Remove inaccurate @return values for add_image_size() and
set_post_thumbnail_size() in wp-includes/media.php
---------------------------+-----------------------------
 Reporter:  stevegrunwell  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  docs           |
---------------------------+-----------------------------
 The DocBlocks for both`add_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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30511>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list