$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
$args = array(
'post_type' => 'post',
'post_status' => 'pending',
'posts_per_page' => 3,
'author' => $curauth->ID,
);
/////.....