[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 23:45:09 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.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by aaroncampbell):

 * keywords:  needs-unit-tests =>


Comment:

 [attachment:27998-unit-tests.diff] adds one test with two assertions. One
 with no global post set up and one with. The first errors before the patch
 and passes after. The second passes before and after.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27998#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list