WordPress.org

Make WordPress Core

Changeset 32350


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.

Location:
trunk/src
Files:
2 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 */
  • trunk/src/wp-includes/post.php

    r32342 r32350  
    51335133 *
    51345134 * @since 2.1.0
    5135  * @since 4.2.0 Modified into wrapper for wp_attachment_is()
     5135 * @since 4.2.0 Modified into wrapper for wp_attachment_is() and
     5136 *              allowed WP_Post object to be passed.
    51365137 *
    51375138 * @param int|WP_Post $post Optional. Attachment ID. Default 0.
Note: See TracChangeset for help on using the changeset viewer.