Changeset 1398
- Timestamp:
- 06/10/2004 07:42:48 AM (22 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
index.php (modified) (2 diffs)
-
wp-comments.php (modified) (2 diffs)
-
wp-includes/template-functions-comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r1390 r1398 38 38 <div class="post"> 39 39 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3> 40 <div class="meta"><?php _e("Filed under:"); ?> <?php the_category( ) ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>40 <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div> 41 41 42 42 <div class="storycontent"> … … 53 53 --> 54 54 55 <?php include(ABSPATH . 'wp-comments.php'); ?>56 55 </div> 56 57 <?php comments_template(); // Get wp-comments.php template ?> 57 58 58 59 <?php endforeach; else: ?> -
trunk/wp-comments.php
r1355 r1398 18 18 $comment_author_url = (isset($_COOKIE['comment_author_url_'.$cookiehash])) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : ''; 19 19 20 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$ id' AND comment_approved = '1' ORDER BY comment_date");20 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date"); 21 21 ?> 22 22 … … 33 33 34 34 35 <?php if ($comments) { ?> 35 <?php if ($comments) { ;?> 36 36 37 <ol id="commentlist"> 37 38 <?php foreach ($comments as $comment) { ?> -
trunk/wp-includes/template-functions-comment.php
r1355 r1398 16 16 17 17 add_filter('comment_excerpt', 'convert_chars'); 18 19 function comments_template() { 20 global $withcomments, $single, $post, $wpdb, $id, $comment; 21 if ( $single || $withcomments ) 22 include(ABSPATH . 'wp-comments.php'); 23 } 18 24 19 25 function clean_url($url) {
Note: See TracChangeset
for help on using the changeset viewer.