[wp-trac] [WordPress Trac] #43046: `has_image_size()` returns false for Core image sizes

WordPress Trac noreply at wordpress.org
Thu Jan 17 19:30:31 UTC 2019


#43046: `has_image_size()` returns false for Core image sizes
-------------------------------------------------+-------------------------
 Reporter:  desrosj                              |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  3.9
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch dev-feedback has-unit-     |     Focuses:
  tests needs-refresh                            |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  has-patch dev-feedback has-unit-tests => has-patch dev-
     feedback has-unit-tests needs-refresh
 * milestone:  5.1 => Future Release


Comment:

 @andizer thanks for those tests! More code would need to be added for the
 second one to be accurate, though, as `has_image_size()` does not
 currently accept a second parameter.

 I am going to punt this to Future Release. This could just be a simple
 docs change to indicate core image sizes are excluded, or an added
 parameter. But the implications of the second option are not yet clear.

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


More information about the wp-trac mailing list