Changeset 14981 for trunk/wp-includes/media.php
- Timestamp:
- 05/27/2010 05:03:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r14979 r14981 485 485 * The url path will be given, when the $size parameter is a string. 486 486 * 487 * @since 2.5.0 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 * efficient than having to find the closest-sized image and then having the 490 * browser scale down the image. 491 * 492 * @since 2.5.0 493 * @see add_image_size() 488 494 * 489 495 * @param int $post_id Attachment ID for image. … … 588 594 * Get an HTML img element representing an image attachment 589 595 * 596 * While $size will accept an array, it is better to register a size with 597 * add_image_size() so that a cropped version is generated. It's much more 598 * efficient than having to find the closest-sized image and then having the 599 * browser scale down the image. 600 * 601 * @see add_image_size() 590 602 * @uses apply_filters() Calls 'wp_get_attachment_image_attributes' hook on attributes array 591 603 * @uses wp_get_attachment_image_src() Gets attachment file URL and dimensions
Note: See TracChangeset
for help on using the changeset viewer.