From 0d9a94d5537657d19a3a05955d9787d800968c3f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 21 Dec 2005 15:47:54 +0000 Subject: [PATCH] Edit link does not belong on attachments. fixes #2119 git-svn-id: http://svn.automattic.com/wordpress/trunk@3333 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-links.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 4b7f86608..2d4c5f393 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -214,7 +214,7 @@ function edit_post_link($link = 'Edit This', $before = '', $after = '') { } if ( is_attachment() ) - $file = 'attachments'; + return; else $file = 'post';