Changeset 3122

Show
Ignore:
Timestamp:
11/17/05 01:57:18 (3 years ago)
Author:
matt
Message:

Fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/template-functions-links.php

    r3092 r3122  
    298298 
    299299function previous_post_link($format='« %link', $link='%title', $in_same_cat = false, $excluded_categories = '') { 
    300     if ( is_attachment() ) { 
     300 
     301    if ( is_attachment() ) 
    301302        $post = & get_post($GLOBALS['post']->post_parent); 
    302         $pre = __('Belongs to '); 
    303     } else { 
     303    else 
    304304        $post = get_previous_post($in_same_cat, $excluded_categories); 
    305         $pre = ''; 
    306     } 
    307305 
    308306    if ( !$post ) 
     
    315313 
    316314    $format = str_replace('%link', $link, $format); 
     315 
    317316    echo $format;        
    318317}