[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
Sun Nov 30 05:48:05 UTC 2014


#30511: Remove inaccurate @return values for add_image_size() and
set_post_thumbnail_size() in wp-includes/media.php
---------------------------+---------------------------
 Reporter:  stevegrunwell  |       Owner:  DrewAPicture
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.1
Component:  Media          |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  docs
---------------------------+---------------------------
Changes (by DrewAPicture):

 * owner:   => DrewAPicture
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30633"]:
 {{{
 #!CommitTicketReference repository="" revision="30633"
 Remove return descriptions from the DocBlocks for `add_image_size()` and
 `set_post_thumbnail_size()` as they don't return anything.

 Also document the `$_wp_additional_image_sizes` global, leveraged in
 `add_image_size()`.

 Props stevegrunwell.
 Fixes #30511.
 }}}

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


More information about the wp-trac mailing list