[wp-trac] [WordPress Trac] #54383: wp_get_attachment_thumb_file looks for $imagedata['thumb'] but wp_create_image_subsizes doesn't create this array entry

WordPress Trac noreply at wordpress.org
Fri Nov 5 17:58:52 UTC 2021


#54383: wp_get_attachment_thumb_file looks for $imagedata['thumb'] but
wp_create_image_subsizes doesn't create this array entry
-----------------------------+------------------------------
 Reporter:  markhowellsmead  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  5.8.1
 Severity:  major            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by joyously):

 Amazing that this has been there since version 2.1. I wonder if there is
 another ticket for this?
 The standard sizes are listed in `get_intermediate_image_sizes()`.

 `$image_sizes = array('thumbnail', 'medium', 'medium_large', 'large'); //
 Standard sizes`

 yet `wp_get_attachment_thumb_file()` checks for `['thumb']`.

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


More information about the wp-trac mailing list