Opened 10 years ago
Closed 10 years ago
#35222 closed enhancement (fixed)
count_user_posts() - change docs to return string instead of int
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.5 | Priority: | normal |
| Severity: | minor | Version: | |
| Component: | Users | Keywords: | has-patch |
| Focuses: | docs | Cc: |
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.
Related: #33929