Changeset 1245 for trunk/wp-includes/template-functions-links.php
- Timestamp:
- 05/09/2004 05:47:02 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-links.php
r1227 r1245 17 17 break; 18 18 } 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();39 19 } 40 20 … … 166 146 167 147 $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"; 169 149 } 170 150
Note: See TracChangeset
for help on using the changeset viewer.