示例#1
0
 /**
  * @return null|WPLib_User_Base
  */
 function author()
 {
     if (!($author_id = $this->author_id())) {
         $author = null;
     } else {
         $author = WPLib::get_user_by('id', $author_id);
     }
     return $author;
 }