[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
Sun May 11 00:25:31 UTC 2014


#27998: the_author_posts() returns an inaccurate value with the author has no
published posts
-------------------------------+-----------------------------
 Reporter:  jbenton            |       Owner:  wonderboymusic
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  4.0
Component:  Posts, Post Types  |     Version:  3.0
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28362"]:
 {{{
 #!CommitTicketReference repository="" revision="28362"
 In `get_the_author_posts()`, if there is no current `$post`, return `0`
 and bail.

 Props krogsgard, aaroncampbell.
 Fixes #27998.
 }}}

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


More information about the wp-trac mailing list