[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:14:36 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:  needs-unit-tests  |     Focuses:
------------------------------+------------------------------
Changes (by nacin):

 * keywords:   => needs-unit-tests


Comment:

 This looks good. There is need for `empty()`, it can just be `! $post`, as
 the variable will always exist.

 I don't think we need to venture further down the stack.

 This will also need unit tests.

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


More information about the wp-trac mailing list