Opened 16 years ago
Closed 15 years ago
#12904 closed enhancement (fixed)
get_comments(): Enable post_status, post_type
| Reported by: | zeo | Owned by: | jorbin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
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
@
16 years ago
- Milestone 3.1 → 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
@
16 years ago
- Keywords early needs-refresh dev-feedback needs-testing removed
Patch still does too much work. See also wp_parse_args.
#8
@
16 years ago
- Cc added
- Owner set to
- Status new → assigned
I'm going to take a crack at this now.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.