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

WordPress Trac noreply at wordpress.org
Sun Oct 4 10:34:36 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:
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * keywords:   => has-patch needs-refresh needs-unit-tests
 * component:  Post Thumbnails => Media


Comment:

 I'd rather introduce a new `wp_get_attachment_file( $post, $size )`
 function. `wp_get_attachment_thumb_file()` could then simply be a wrapper
 for `wp_get_attachment_file( $post = null, $size = 'thumb' )`

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


More information about the wp-trac mailing list