[wp-trac] [WordPress Trac] #27998: the_author_posts() returns an inaccurate value with the author has no published posts
WordPress Trac
noreply at wordpress.org
Wed Apr 23 21:43:49 UTC 2014
#27998: the_author_posts() returns an inaccurate value with the author has no
published posts
--------------------------+-----------------------------
Reporter: jbenton | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.8.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When the_author_posts() is run for a user who has zero published posts,
the value returned is the total number of published posts on the entire WP
install. First noticed when I saw someone with 0 posts listed as having
4,181 — the total post count for the site. Confirmed on another install
that had 30 total posts and returned 30 for a user with zero posts.
Details, with confirmation from @nacin, here (see the thread) — apparently
this was broken in 3.0:
https://twitter.com/jbenton/status/459083084189929472
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27998>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list