Opened 13 years ago
Closed 13 years ago
#25530 closed defect (bug) (fixed)
WP_Image_Editor: inline documentation fixed for multi_resize array keys
| Reported by: | paolal | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Inline Docs | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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
@
13 years ago
- Keywords commit removed
Array parameters should be documented using the hash notation style outlined in the inline docs standards.
#4
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
looks great and ready to commit.