ID, "anonymous_comments",true)!==""){ echo "
" . __("All comments to this post are anonymous") . "
"; } } function email( $email, $comment_ID) { if(is_admin()){ if (defined('DOING_AJAX')){ if(!DOING_AJAX) { return $author; } } } global $post,$comment; if(get_post_meta($post->ID, "anonymous_comments",true)!==""){ if(get_current_user_id()!=0){ if(get_post_meta($post->ID, "anonymous_comments",true)!==""){ if(get_post_meta($post->ID, "admin_bypass_anonymous_comments",true)!==""){ return $email; } } } if($comment->user_id==$post->post_author){ if(get_post_meta($post->ID, "show_author_anonymous_comments",true)!==""){ return $email; } } return ""; } } function url( $url, $comment_ID, $comment) { if(is_admin()){ if (defined('DOING_AJAX')){ if(!DOING_AJAX) { return $author; } } } global $post,$comment; if(get_post_meta($post->ID, "anonymous_comments",true)!==""){ if(get_current_user_id()!=0){ if(get_post_meta($post->ID, "anonymous_comments",true)!==""){ if(get_post_meta($post->ID, "admin_bypass_anonymous_comments",true)!==""){ return $url; } } } if($comment->user_id==$post->post_author){ if(get_post_meta($post->ID, "show_author_anonymous_comments",true)!==""){ return $url; } } return ""; } } function avatar( $avatar, $id_or_email, $size, $default, $alt ) { if(is_admin()){ if (defined('DOING_AJAX')){ if(!DOING_AJAX) { return $author; } } } global $post,$comment; if(isset($post->ID)){ if(get_post_meta($post->ID, "anonymous_comments",true)!==""){ if(get_current_user_id()!=0){ if(get_post_meta($post->ID, "anonymous_comments",true)!==""){ if(get_post_meta($post->ID, "admin_bypass_anonymous_comments",true)!==""){ return $avatar; } } } if(isset($comment->user_id)){ if($comment->user_id==$post->post_author){ if(get_post_meta($post->ID, "show_author_anonymous_comments",true)!==""){ return $avatar; } } } return "