get_posts_by_author_sql() should use the post type object
|Reported by:||nacin||Owned by:|
The filter there, pub_priv_sql_capability, is pretty useless, particularly since it doesn't receive any context. Suggesting we simply remove it.
Patch also adds a $post_type property to count_many_users_posts().