[wp-trac] [WordPress Trac] #25530: WP_Image_Editor: inline documentation fixed for multi_resize array keys

WordPress Trac noreply at wordpress.org
Mon Oct 7 17:38:41 UTC 2013


#25530: WP_Image_Editor: inline documentation fixed for multi_resize array keys
--------------------------+-----------------------------
 Reporter:  paolal        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Inline Docs   |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Added mention that:
 {{{
          * The key of each array will be returned as the image size
 (generally 'small', 'medium', or 'large').
 }}}

 and updated example:
 {{{
          * @param array $sizes { ['size'] => {'width'=>int, 'height'=>int,
 ['crop'=>bool]}, ... }
 }}}
 to remind that even if the key is not required, it has to be returned by
 the function due to core's utilisation of multi_resize

 Seen with @DH-Shredder

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25530>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list