Opened 11 years ago
Closed 11 years ago
#35222 closed enhancement (fixed)
count_user_posts() - change docs to return string instead of int
| Reported by: | nofearinc | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Users | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
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.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #33929