Opened 12 years ago
Closed 12 years ago
#27064 closed enhancement (fixed)
Allow user_id to accept an array of IDs for WP_Comment_Query
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.9 |
| Component: | Comments | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
As the user who submitted this support ticket wanted, it seems perfectly reasonable to me that we should allow an array of user IDs to be passed to the user_id parameter of WP_Comment_Query in order to retrieve comments by multiple users.
I'd propose that the user_id allow either an integer or an array to be passed.
Attachments (5)
Change History (12)
#1
@
12 years ago
Works for me. We should put a space between IN and (.
Would also be cool if a simple user test ended up in tests/phpunit/tests/comment/query.php.
#2
@
12 years ago
- Keywords has-patch commit needs-unit-tests added
- Milestone changed from Awaiting Review to 3.9
Note: See
TracTickets for help on using
tickets.
Allow user_id to be passed as an array to WP_Comment_Query