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

WordPress Trac noreply at wordpress.org
Tue Jul 16 12:44:11 UTC 2019


#47713: image_get_intermediate_size does not return size if it equals original size
--------------------------+-----------------------------
 Reporter:  mahnunchik    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.2.2
 Severity:  major         |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 Function `image_get_intermediate_size` does not return size if it equal
 original size.

 1. WordPress itself doesn't generate `sizes` metadata item for size equal
 original image size.
 2. `image_get_intermediate_size` looks throught `sizes` metadata and
 doesn't see necessary size.
 3. It doesn't check original image size.

 More details here: https://github.com/Yoast/wordpress-seo/issues/10863

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


More information about the wp-trac mailing list