Ticket #32246: 32246.4.diff
File 32246.4.diff, 783 bytes (added by , 9 years ago) |
---|
-
wp-admin/includes/media.php
843 843 * @param int $post_id The post ID the media is to be associated with. 844 844 * @param string $desc Optional. Description of the image. 845 845 * @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. 847 847 */ 848 848 function media_sideload_image( $file, $post_id, $desc = null, $return = 'html' ) { 849 849 if ( ! empty( $file ) ) {