WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/05/2015 02:15:27 AM (4 years ago)
Author:
DrewAPicture
Message:

Add two changelog entries for functional changes introduced in 4.2.0.

Props dimadin.
See #31925.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r32341 r32350  
    826826 *
    827827 * @since 2.6.0
     828 * @since 4.2.0 Introduced the `$return` parameter.
    828829 *
    829830 * @param string $file The URL of the image to download
    830831 * @param int $post_id The post ID the media is to be associated with
    831832 * @param string $desc Optional. Description of the image
    832  * @param string $return Optional. What to return: an image tag (default) or only the src.
     833 * @param string $return Optional. Accepts 'html' (image tag html) or 'src' (URL). Default 'html'.
    833834 * @return string|WP_Error Populated HTML img tag on success
    834835 */
Note: See TracChangeset for help on using the changeset viewer.