diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-23 15:47:59 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-23 15:47:59 +0000 |
commit | 132f53ddaeb250222a4ac85ebc0bf4dd780db60e (patch) | |
tree | d3deccaeee2dd2460dc36fef83685262ef0b64fc /wp-content | |
parent | 5235dfe56983b253c4ea3ec91bc436e5ffb2660a (diff) | |
download | wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.tar.gz wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.tar.xz wordpress-mu-132f53ddaeb250222a4ac85ebc0bf4dd780db60e.zip |
WP Merge to 4929
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@899 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content')
-rw-r--r-- | wp-content/themes/classic/comments-popup.php | 2 | ||||
-rw-r--r-- | wp-content/themes/default/comments-popup.php | 2 | ||||
-rw-r--r-- | wp-content/themes/default/comments.php | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/wp-content/themes/classic/comments-popup.php b/wp-content/themes/classic/comments-popup.php index 8c0ba25..bded9b4 100644 --- a/wp-content/themes/classic/comments-popup.php +++ b/wp-content/themes/classic/comments-popup.php @@ -21,7 +21,7 @@ while( have_posts()) : the_post(); <h2 id="comments"><?php _e("Comments"); ?></h2> -<p><a href="<?php echo get_option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> +<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p> <?php if ('open' == $post->ping_status) { ?> <p><?php _e("The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p> diff --git a/wp-content/themes/default/comments-popup.php b/wp-content/themes/default/comments-popup.php index 04dba33..9ad28b5 100644 --- a/wp-content/themes/default/comments-popup.php +++ b/wp-content/themes/default/comments-popup.php @@ -21,7 +21,7 @@ while ( have_posts()) : the_post(); <h2 id="comments">Comments</h2> -<p><a href="<?php echo get_option('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> +<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> <?php if ('open' == $post->ping_status) { ?> <p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p> diff --git a/wp-content/themes/default/comments.php b/wp-content/themes/default/comments.php index 1108de8..0ff43b4 100644 --- a/wp-content/themes/default/comments.php +++ b/wp-content/themes/default/comments.php @@ -14,7 +14,7 @@ } /* This variable is for alternating comment background */ - $oddcomment = 'alt'; + $oddcomment = 'class="alt" '; ?> <!-- You can start editing here. --> @@ -26,7 +26,7 @@ <?php foreach ($comments as $comment) : ?> - <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> + <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> <cite><?php comment_author_link() ?></cite> Says: <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> @@ -39,9 +39,9 @@ </li> - <?php /* Changes every other comment to a different class */ - if ('alt' == $oddcomment) $oddcomment = ''; - else $oddcomment = 'alt'; + <?php + /* Changes every other comment to a different class */ + $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; ?> <?php endforeach; /* end for each comment */ ?> |