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

WordPress Trac noreply at wordpress.org
Thu Oct 8 20:37:12 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 joemcgill):

 Replying to [comment:3 swissspidy]:

 > Second, doesn't `image_get_intermediate_size` already do what you want
 to achieve?

 The documentation for `image_get_intermediate_size` isn't clear (see:
 #34124), but you're correct that it does return both the path and URL, as
 long as you are passing a valid intermediate size name (e.g. 'medium') as
 the second parameter and not an array of height/width values.

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


More information about the wp-trac mailing list