From 616efa0eb9ac278d93d8cb843eb081b7b2aba1ae Mon Sep 17 00:00:00 2001 From: mikelittle Date: Tue, 30 Sep 2003 22:37:04 +0000 Subject: [PATCH] Removed border attribute from img tag on upload. Added no border style for image anchors http://wordpress.org/support/4/658 git-svn-id: http://svn.automattic.com/wordpress/trunk@399 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/b2upload.php | 2 +- wp-layout.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/b2upload.php b/wp-admin/b2upload.php index bd4a3555e..a413cc01f 100644 --- a/wp-admin/b2upload.php +++ b/wp-admin/b2upload.php @@ -207,7 +207,7 @@ if (!empty($HTTP_POST_VARS)) { //$img1_name != "") { if ( ereg('image/',$img1_type)) { - $piece_of_code = "<img src="$fileupload_url/$img1_name" border="0" alt="$imgdesc" />"; + $piece_of_code = "<img src="$fileupload_url/$img1_name" alt="$imgdesc" />"; } else { $piece_of_code = "<a href="$fileupload_url/$img1_name" title="$imgdesc" />$imgdesc</a>"; }; diff --git a/wp-layout.css b/wp-layout.css index e41b5daf2..bf2ce114f 100644 --- a/wp-layout.css +++ b/wp-layout.css @@ -3,6 +3,10 @@ Please tweak this and make it your own. :) */ +a img { + border: none; +} + a { color: #675; }