Changeset 665
- Timestamp:
- 12/30/2003 10:48:06 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
index.php (modified) (1 diff)
-
wp-includes/template-functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r652 r665 39 39 <div class="post"> 40 40 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3> 41 <div class="meta">Filed under: <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> </div>41 <div class="meta">Filed under: <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div> 42 42 43 43 <div class="storycontent"> -
trunk/wp-includes/template-functions.php
r663 r665 542 542 } 543 543 544 function edit_post_link($link = 'Edit This', $before = '', $after = '') { 545 global $user_level, $post, $siteurl; 546 547 get_currentuserinfo(); 548 549 if ($user_level > 0) { 550 $authordata = get_userdata($post->post_author); 551 if ($user_level < $authordata->user_level) { 552 return; 553 } 554 } else { 555 return; 556 } 557 558 $location = "$siteurl/wp-admin/post.php?action=edit&post=$post->ID"; 559 echo "$before <a href='$location'>$link</a> $after"; 560 } 561 544 562 /***** Date/Time tags *****/ 545 563 … … 551 569 552 570 function the_date($d='', $before='', $after='', $echo = true) { 553 global $id, $post, $da teday, $previousday, $dateformat, $newday;571 global $id, $post, $day, $previousday, $dateformat, $newday; 554 572 $the_date = ''; 555 $dateday = mysql2date('Yd', $post->post_date); 556 if ($dateday != $previousday) { 573 if ($day != $previousday) { 557 574 $the_date .= $before; 558 575 if ($d=='') { … … 562 579 } 563 580 $the_date .= $after; 564 $previousday = $da teday;581 $previousday = $day; 565 582 } 566 583 $the_date = apply_filters('the_date', $the_date); … … 1689 1706 $comment_text = convert_bbcode($comment_text); 1690 1707 $comment_text = convert_gmcode($comment_text); 1708 $comment_text = convert_smilies($comment_text); 1691 1709 $comment_text = make_clickable($comment_text); 1692 1710 $comment_text = balanceTags($comment_text,1); 1693 1711 $comment_text = apply_filters('comment_text', $comment_text); 1694 $comment_text = convert_smilies($comment_text);1695 1712 echo $comment_text; 1696 1713 }
Note: See TracChangeset
for help on using the changeset viewer.