Make WordPress Core


Ignore:
Timestamp:
05/09/2004 05:47:02 AM (21 years ago)
Author:
saxmatt
Message:

Various fixes and cleanups, inspired and pointed out by Joseph Scott.

File:
1 edited

Legend:

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

    r1227 r1245  
    1717            break;
    1818    }
    19 }
    20 
    21 function permalink_link($file='', $mode = 'id') {
    22     global $post, $pagenow, $cacheweekly, $wpdb;
    23     $file = ($file=='') ? $pagenow : $file;
    24     switch(strtolower($mode)) {
    25         case 'title':
    26             $title = sanitize_title($post->post_title) . '-' . $post->ID;
    27             $anchor = $title;
    28             break;
    29         case 'id':
    30         default:
    31             $anchor = $id;
    32             break;
    33     }
    34     echo get_permalink();
    35 }
    36 
    37 function permalink_single($file = '') {
    38     echo get_permalink();
    3919}
    4020
     
    166146
    167147    $location = get_settings('siteurl') . "/wp-admin/post.php?action=editcomment&comment=$comment->comment_ID";
    168     echo "$before <a href=\"$location\">$link</a> $after";
     148    echo "$before <a href='$location'>$link</a> $after";
    169149}
    170150
Note: See TracChangeset for help on using the changeset viewer.