WordPress.org

Make WordPress Core

Ticket #13556: media.php.patch

File media.php.patch, 1.0 KB (added by jorbin, 4 years ago)
  • wp-includes/media.php

     
    484484 * 
    485485 * The url path will be given, when the $size parameter is a string. 
    486486 * 
     487 * If you are passing an array for the $size, you should consider using 
     488 * add_image_size so that a cropped version is generated.  It's much more 
     489 * efficiant then having to find the closest sized image. 
     490 * 
    487491 * @since 2.5.0 
    488492 * 
    489493 * @param int $post_id Attachment ID for image. 
     
    587591/** 
    588592 * Get an HTML img element representing an image attachment 
    589593 * 
     594 * While $size will accept an array, it is better to register a size with 
     595 * add_image_size so that a cropped version is generated.  It's much more 
     596 * efficiant then having to find the closest sized image. 
     597 * 
     598 * 
    590599 * @uses apply_filters() Calls 'wp_get_attachment_image_attributes' hook on attributes array 
    591600 * @uses wp_get_attachment_image_src() Gets attachment file URL and dimensions 
    592601 * @since 2.5.0