From f29f877dba325b7b3ba37a57361f38434d1039e0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 21 Dec 2005 15:47:54 +0000 Subject: [PATCH] Edit link does not belong on attachments. fixes #2119 git-svn-id: https://develop.svn.wordpress.org/trunk@3333 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 4b7f866082..2d4c5f3939 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';