Ticket #13556: media.php.patch
File media.php.patch, 1.0 KB (added by , 15 years ago) |
---|
-
wp-includes/media.php
484 484 * 485 485 * The url path will be given, when the $size parameter is a string. 486 486 * 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 * 487 491 * @since 2.5.0 488 492 * 489 493 * @param int $post_id Attachment ID for image. … … 587 591 /** 588 592 * Get an HTML img element representing an image attachment 589 593 * 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 * 590 599 * @uses apply_filters() Calls 'wp_get_attachment_image_attributes' hook on attributes array 591 600 * @uses wp_get_attachment_image_src() Gets attachment file URL and dimensions 592 601 * @since 2.5.0