(int)er the dragon.

git-svn-id: https://develop.svn.wordpress.org/trunk@5087 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2007-03-23 00:59:21 +00:00
parent 3e2783acdd
commit b1f6f9a6a8
31 changed files with 434 additions and 432 deletions

View File

@@ -150,7 +150,7 @@ function get_comments_number( $post_id = 0 ) {
$post_id = (int) $post_id;
if ( !$post_id )
$post_id = $id;
$post_id = (int) $id;
$post = get_post($post_id);
if ( ! isset($post->comment_count) )