Opened 11 years ago
Closed 11 years ago
#25530 closed defect (bug) (fixed)
WP_Image_Editor: inline documentation fixed for multi_resize array keys
Reported by: | paolal | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
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
Attachments (2)
Change History (7)
#2
@
11 years ago
- Keywords commit removed
Array parameters should be documented using the hash notation style outlined in the inline docs standards.
#4
@
11 years ago
- Keywords has-patch commit added; needs-patch removed
25530.2.diff handles the array hash notations.
Note: See
TracTickets for help on using
tickets.
looks great and ready to commit.