XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 9, 2009, 1:22:56 PM (15 years ago)
Author:
toemon
Message:

WP2011のコメントブロックの元記事リンクが全て同じになっているバグ修正 fixed #146
コメント用言語ファイル修正

File:
1 edited

Legend:

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

    r262 r269  
    6060                                $comment_content = $comment->comment_content; 
    6161                                $comment_excerpt = ($disp_length>0 ? xpress_substr($comment_content, 0, $disp_length): $comment->comment_content); 
    62  
    63                                 $comment_link = get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID ; 
     62                                if (xpress_is_wp20()){ 
     63                                        $comment_link = get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID ; 
     64                                } else { 
     65                                        $comment_link = get_comment_link($comment->comment_ID); 
     66                                } 
    6467                                $comment_title = $comment_excerpt; 
    6568                                $comment_title_link = "<a href='$comment_link' rel='external nofollow' class='url'>$comment_title</a>"; 
    6669 
    67                                 $post_link = get_comment_link($comment->comment_ID); 
     70                                $post_link = get_permalink($comment->comment_post_ID); 
    6871                                $post_title = get_the_title($comment->comment_post_ID); 
    6972                                $post_title_link = '<a href="'. $post_link . '">' . $post_title . '</a>'; 
     
    7477 
    7578                                $comment_type = (empty($comment->comment_type) ? 'comment': $comment->comment_type); 
    76                                 $from_auther_to_post = sprintf(__('%1$s on %2$s'), $author_name_link , $post_title_link ); 
     79                                 
     80                                $post_title_comment_link = '<a href="'. $comment_link . '">' . $post_title . '</a>'; 
     81                                $from_auther_to_post = sprintf(__('%1$s on %2$s','xpress'), $author_name_link , $post_title_comment_link ); 
    7782 
    7883                                $row_data = array( 
Note: See TracChangeset for help on using the changeset viewer.