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';