Changeset 603
- Timestamp:
- May 1, 2010, 2:56:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php
r448 r603 1 1 <?php 2 // Block Version: 1. 02 // Block Version: 1.1 3 3 function recent_comments_block($options) 4 4 { … … 61 61 $comment_content = $comment->comment_content; 62 62 $comment_excerpt = ($disp_length>0 ? xpress_substr($comment_content, 0, $disp_length): $comment->comment_content); 63 $comment_link = get_comment_link($comment->comment_ID); 63 if (xpress_is_wp_version('<','2.7')){ 64 $comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment->comment_ID; 65 } else { 66 $comment_link = get_comment_link($comment->comment_ID); 67 } 64 68 $comment_title = $comment_excerpt; 65 69 $comment_title_link = "<a href='$comment_link' rel='external nofollow' class='url'>$comment_title</a>";
Note: See TracChangeset
for help on using the changeset viewer.