Changeset 3122
- Timestamp:
- 11/17/05 01:57:18 (3 years ago)
- Files:
-
- trunk/wp-includes/template-functions-links.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/template-functions-links.php
r3092 r3122 298 298 299 299 function previous_post_link($format='« %link', $link='%title', $in_same_cat = false, $excluded_categories = '') { 300 if ( is_attachment() ) { 300 301 if ( is_attachment() ) 301 302 $post = & get_post($GLOBALS['post']->post_parent); 302 $pre = __('Belongs to '); 303 } else { 303 else 304 304 $post = get_previous_post($in_same_cat, $excluded_categories); 305 $pre = '';306 }307 305 308 306 if ( !$post ) … … 315 313 316 314 $format = str_replace('%link', $link, $format); 315 317 316 echo $format; 318 317 }
