[wp-trac] [WordPress Trac] #22512: WP_Image_Editor - image_resize_dimensions called twice
WordPress Trac
noreply at wordpress.org
Tue Nov 20 23:34:13 UTC 2012
#22512: WP_Image_Editor - image_resize_dimensions called twice
--------------------------+------------------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by DH-Shredder):
Agreed that more documentation is needed, and there will be further docs
developed as part of this cycle. The beginning of this, of course, can be
found within PHPDoc in trunk. I also recommend checking out some of
core's uses of the editor, since the existing wp_crop_image() and
deprecated image_resize() are good basic primers in that regard.
For clarification's purposes, are you arguing that there is a place in
core code that image_resize_dimensions() is called twice, or is it only a
complaint that your current code is requiring that the function be run
once outside by yourself, then again within WP_Image_Editor? I don't see
image_resize_dimensions() getting called in core except within the editors
and image_resize_dimensions() itself (in a filter).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22512#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list