WordPress.org

Make WordPress Core

Ticket #32246: 32246.4.diff

File 32246.4.diff, 783 bytes (added by dimadin, 4 years ago)
  • wp-admin/includes/media.php

     
    843843 * @param int    $post_id The post ID the media is to be associated with.
    844844 * @param string $desc    Optional. Description of the image.
    845845 * @param string $return  Optional. Accepts 'html' (image tag html) or 'src' (URL). Default 'html'.
    846  * @return string|WP_Error Populated HTML img tag on success, WP_Error object otherwise.
     846 * @return string|WP_Error Populated HTML img tag (default) or image URL on success, WP_Error object otherwise.
    847847 */
    848848function media_sideload_image( $file, $post_id, $desc = null, $return = 'html' ) {
    849849        if ( ! empty( $file ) ) {