wp-includes/author-template.php:298Retrieves the number of posts by the author of the current post.
intfunction get_the_author_posts() { $post = get_post(); if ( ! $post ) { return 0; } return (int) count_user_posts( $post->post_author, $post->post_type );}Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/author-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.