/** * * @since 1.3 * * @param $post object * @return string */ private function orderby_author($post) { $output = '<li><a href="' . esc_url(get_author_posts_url($post->post_author, $post->author_nicename)) . '" title="'; $output .= sprintf(__('View all posts by %s', 'sitetree'), SiteTreeUtilities::mysqlToDate($post->author_name)); $output .= '">' . esc_attr($post->author_name) . "</a>\n"; return $output; }