It’s something related to this plugin 100%.
I put an echo $comment_post_ID in wp-comments-post.php to see what post id is setted in the if ( !comments_open($comment_post_ID) )
The id is the one of the 1st liveblogging entry, not the one of the post and in the database comment_status is settled as closed.
The strange is that this happened only when twitter mentions arrived
Did THIS code change the value of $comment_post_ID ?
` // Insert comment
wp_insert_comment(array(
‘comment_post_ID’ => intval($b->name),
‘comment_author’ => $tweet->user->name . ‘ (@’ . $tweet->user->screen_name . ‘)’,
‘comment_author_email’ => $tweet->id . ‘@twitter.com’,
‘comment_author_url’ => ‘https://twitter.com/’ . $tweet->user->screen_name . ‘/status/’ . $tweet->id,
‘comment_content’ => $tweet->text,
‘user_id’ => 0,
‘comment_agent’ => ‘Live Blogging for WordPress Twitter Importer’,
‘comment_date’ => strftime(‘%Y-%m-%d %H:%M:%S’, strtotime($tweet->created_at) + (get_option( ‘gmt_offset’ ) * 3600)),
‘comment_approved’ => (get_option(‘comment_moderation’) == 1) ? 0 : 1
));