[wp-trac] [WordPress Trac] #48489: Big image size threshold should take into account registered image sizes.

WordPress Trac noreply at wordpress.org
Wed Jun 28 01:41:10 UTC 2023


#48489: Big image size threshold should take into account registered image sizes.
-------------------------------------------------+-------------------------
 Reporter:  johnbillion                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * keywords:  good-first-bug has-patch => good-first-bug has-patch needs-
     unit-tests


Comment:

 > However, I noticed that many of the default themes (e.g.
 twentytwentyone, twentytwenty, twentynineteen) set the
 post_thumbnail_size's height to 9999, which results in the threshold now
 being 9999.

 @psrpinto Do we know why these themes use that value? I assume the goal is
 to crop only the horizontal dimension? is there another way to achieve
 that?

 or maybe we can separate out the width/height treatment, or treat 9999 as
 a special case?

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


More information about the wp-trac mailing list