Opened 15 years ago
Closed 14 years ago
#12904 closed enhancement (fixed)
get_comments(): Enable post_status, post_type
Reported by: | zeo | Owned by: | jorbin |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | needs-patch |
Focuses: | Cc: |
Description
To better extend and improve get_comments()
to be use in various ways. Enable get_comments()
to retrieve comments based on post 'post status', or post 'post type'.
Currently, even with comment 'status' = approve, it will fetch all comments regardless of 'post status' or 'post type'.
Thoughts?
Attachments (1)
Change History (14)
#5
@
15 years ago
- Milestone changed from 3.1 to 3.0
This ticket need early attention, because of this changeset [14483]. Even though the comment in Private, or Draft? post is not accessible but it still appear in Recent Comments listing.
#6
@
15 years ago
- Keywords early needs-refresh dev-feedback needs-testing removed
Patch still does too much work. See also wp_parse_args.
#8
@
15 years ago
- Cc aaron@… added
- Owner set to jorbin
- Status changed from new to assigned
I'm going to take a crack at this now.
Note: See
TracTickets for help on using
tickets.
Patch is doing a bit too much work. We have various helper functions here that can help: get_post_stati, get_post_types, wp_parse_args|str, etc.