Skip to content

Commit

Permalink
more fun
Browse files Browse the repository at this point in the history
Signed-off-by: Sam <[email protected]>
  • Loading branch information
SamSaffron committed Mar 28, 2013
1 parent 965d3f8 commit 45e437c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wp-discourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ public function init() {
}

function comments_number($count) {


global $post;
if(self::use_discourse_comments($post->ID)){
self::sync_comments($post->ID);
$count = get_post_meta($post->ID, 'discourse_comments_count', true);
if(!$count){
$count = "";
$count = "Leave a reply";
} else {
$count = $count == 1 ? "1 Reply" : $count . " Replies";
}
}

Expand Down

0 comments on commit 45e437c

Please sign in to comment.