From 1fa06da55ce06b5a76f7fe2475dd4f74db7ccf64 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 26 Jun 2008 22:05:01 +0000 Subject: [PATCH] Don't prepend http. Props noel. see #6813 git-svn-id: http://svn.automattic.com/wordpress/trunk@8201 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index cf530d426a..99f2bbd2bd 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -330,8 +330,6 @@ function media_sideload_image($file, $post_id, $desc = null) { } if ( !empty($src) ) { - if ( !strpos($src, '://') ) - $src = "http://$src"; $alt = @$desc; $html = "$alt"; return $html;