Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #17262, comment 9


Ignore:
Timestamp:
02/15/2013 07:04:51 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17262, comment 9

    initial v1  
    77Not sure what _file() should return in a deprecated situation. _url() is basically the old-school form of wp_get_attachment_image_src( $size = 'thumbnail' ), which returns array( $src, $width, $height ). Which is kind of lame.
    88
    9 So, perhaps they can both be updated to work on 'thumbnail', and then left, as wp_get_attachment_thumb_url() is definitely easier, nicer, and more obvious to use than wp_get_attachment_image_src()['url'], and according to MarkJaquith, is widely used by plugins (probably for that reason).
     9So, perhaps they can both be updated to work on 'thumbnail', and then left, as `wp_get_attachment_thumb_url()` is definitely easier, nicer, and more obvious to use than `wp_get_attachment_image_src()['url']`, and according to MarkJaquith, is widely used by plugins (probably for that reason).