This is totally not working for me. The code looks like:
// If we’ve made it this far, let’s post.
get_currentuserinfo();
if ($user_login && empty($author)) {
$author = $user_nickname;
$email = $user_email;
$url = $user_url;
}
if(check_comment($author, $email, $url, $comment, $user_ip)) {
$approved = 1;
} else {
$approved = 0;
}
I am logged in and the fields are not pre-populating. Any thoughts?