From 60e7c34c12a8cabe5f9ebafc038be8783b039f2e Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 17 Nov 2005 01:57:18 +0000 Subject: [PATCH] Fixes git-svn-id: http://svn.automattic.com/wordpress/trunk@3122 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-links.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index b8000107c..b18a80172 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -297,13 +297,11 @@ function get_next_post($in_same_cat = false, $excluded_categories = '') { function previous_post_link($format='« %link', $link='%title', $in_same_cat = false, $excluded_categories = '') { - if ( is_attachment() ) { + + if ( is_attachment() ) $post = & get_post($GLOBALS['post']->post_parent); - $pre = __('Belongs to '); - } else { + else $post = get_previous_post($in_same_cat, $excluded_categories); - $pre = ''; - } if ( !$post ) return; @@ -314,6 +312,7 @@ function previous_post_link($format='« %link', $link='%title', $in_same_ca $link = $pre . $string . $link . ''; $format = str_replace('%link', $link, $format); + echo $format; }