XPressME Integration Kit

Trac


Ignore:
Timestamp:
Sep 27, 2009, 8:46:05 PM (15 years ago)
Author:
toemon
Message:

PHP4.4でのseparate_comments(&$comments)を使用したときのバグ修正 fixed #217 (thx heiji)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r360 r389  
    231231function xpress_comment_count( $count ) { 
    232232        global $id; 
    233         $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id)); 
     233        $post_comments =get_comments('status=approve&post_id=' . $id); 
     234        $comments_by_type = &separate_comments($post_comments); 
    234235        return count($comments_by_type['comment']); 
    235236} 
Note: See TracChangeset for help on using the changeset viewer.