[wp-trac] [WordPress Trac] #35222: count_user_posts() - change docs to return string instead of int

WordPress Trac noreply at wordpress.org
Fri Dec 25 17:10:11 UTC 2015


#35222: count_user_posts() - change docs to return string instead of int
-------------------------+-----------------------------
 Reporter:  nofearinc    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Users        |    Version:
 Severity:  minor        |   Keywords:  has-patch
  Focuses:  docs         |
-------------------------+-----------------------------
 As seen in a tweet by Rarst and tested locally, `count_user_posts` returns
 the number of posts from a user as a string instead of int calling
 `$wpdb->get_var`. Since people may validate against strings or compare
 accordingly, a safe bet is letting IDEs know that the return type is
 string.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35222>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list