XPressME Integration Kit

Trac

Changeset 603


Ignore:
Timestamp:
May 1, 2010, 2:56:20 PM (14 years ago)
Author:
toemon
Message:

最近のコメントブロック、リンクエラー バグ修正 Fixes#343

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_comments_block_theme.php

    r448 r603  
    11<?php 
    2 // Block Version: 1.0 
     2// Block Version: 1.1 
    33function recent_comments_block($options) 
    44{ 
     
    6161                                $comment_content = $comment->comment_content; 
    6262                                $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                                } 
    6468                                $comment_title = $comment_excerpt; 
    6569                                $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.