Exemple #1
0
 /**
  * For comments that were handled by WordPress normally (not our code), check if the author
  * registered with OpenID and set comment openid flag if so.
  *
  * @action post_comment
  */
 function check_author_openid($comment_ID)
 {
     global $openid;
     $comment = get_comment($comment_ID);
     if ($comment->user_id && !$comment->openid && is_user_openid($comment->user_id)) {
         WordPressOpenID_Logic::set_comment_openid($comment_ID);
     }
 }