Make WordPress Core

Changeset 471


Ignore:
Timestamp:
10/26/2003 05:28:58 AM (22 years ago)
Author:
saxmatt
Message:

Comments should use new permalinks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2template.functions.php

    r470 r471  
    11631163    if ($file == '')    $file = $pagenow;
    11641164    if ($file == '/')   $file = '';
    1165     if (!$echo) return $file.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1#comments';
    1166     else echo $file.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1#comments';
     1165    if (!$echo) return get_permalink() . '#comments';
     1166    else echo get_permalink() . '#comments';
    11671167}
    11681168
     
    11891189            }
    11901190        }
    1191         echo '<a href="' . $siteurl . '/';
     1191        echo '<a href="' . $siteurl;
    11921192        if ($b2commentsjavascript) {
    11931193            echo $b2commentspopupfile.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1';
Note: See TracChangeset for help on using the changeset viewer.