[wp-trac] [WordPress Trac] #33959: Improve wp_get_attachment_thumb_file

WordPress Trac noreply at wordpress.org
Thu Oct 8 19:57:04 UTC 2015


#33959: Improve wp_get_attachment_thumb_file
-------------------------------------------------+-------------------------
 Reporter:  Rahe                                 |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Media                                |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-refresh needs-unit-  |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by swissspidy):

 Just had another look at this.

 First of all, it seems like `wp_get_attachment_thumb_file` doesn't even
 work. `$imagedata['thumb']` should probably be
 `$imagedata['sizes']['thumbnail']['file']`. See also
 [https://wordpress.org/support/topic/fix-for-bug-in-
 wp_get_attachment_thumb_file-1?replies=4 this bug report] from 3 years
 ago.
 Second, doesn't `image_get_intermediate_size` already do what you want to
 achieve?

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


More information about the wp-trac mailing list