[wp-trac] [WordPress Trac] #47713: image_get_intermediate_size does not return size if it equals original size

WordPress Trac noreply at wordpress.org
Sat Sep 5 17:23:13 UTC 2020


#47713: image_get_intermediate_size does not return size if it equals original size
----------------------------------------+-----------------------------
 Reporter:  mahnunchik                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)                |      Status:  reviewing
 Priority:  normal                      |   Milestone:  Future Release
Component:  Media                       |     Version:  5.2.2
 Severity:  major                       |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by mahnunchik):

 Hi @Mista-Flo

 1. Image with dimensions `100px` x `200px` has been uploaded to WP
 2. You call function `image_get_intermediate_size($id, array(100, 200))`

 **Actual behaviour:**

 Returned `false`

 **Expected behaviour:**

 Returned image object with original `100px` x `200px` dimensions.

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


More information about the wp-trac mailing list