diff --git a/src/tags b/src/tags
new file mode 100644
index 0000000000..96da1e59b9
Binary files /dev/null and b/src/tags differ
diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php
index 5ca4197f1b..def421cf42 100644
|
a
|
b
|
function media_sideload_image( $file, $post_id = 0, $desc = null, $return = 'htm
|
| 1002 | 1002 | if ( is_wp_error( $id ) ) { |
| 1003 | 1003 | @unlink( $file_array['tmp_name'] ); |
| 1004 | 1004 | return $id; |
| 1005 | | // If attachment id was requested, return it early. |
| 1006 | | } elseif ( $return === 'id' ) { |
| 1007 | | return $id; |
| 1008 | 1005 | } |
| 1009 | 1006 | |
| | 1007 | // Store the original attachment source in meta |
| | 1008 | add_post_meta( $id, '_source_url', $file ); |
| | 1009 | |
| | 1010 | // If attachment id was requested, return it. |
| | 1011 | if ( $return === 'id' ) { |
| | 1012 | return $id; |
| | 1013 | } |
| 1010 | 1014 | $src = wp_get_attachment_url( $id ); |
| 1011 | 1015 | } |
| 1012 | 1016 | |