Opened 14 years ago
Closed 11 years ago
#17022 closed enhancement (fixed)
months_dropdown() is not filterable
Reported by: | kevinB | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Query | Keywords: | has-patch |
Focuses: | Cc: |
Description
The months_dropdown() function used on the Edit Posts and Media Library listing forms is not filterable. This causes invalid month items when a plugin uses the WP_Query API to filter editable posts.
The corresponding patch adds the query filter 'months_dropdown_query'
Attachments (4)
Change History (13)
#2
@
14 years ago
- Summary changed from Edit Posts / Media Library: add hook for months_dropdown() to months_dropdown() is not filterable
#3
@
11 years ago
- Milestone changed from Awaiting Review to 3.7
Slightly altered the style of the patch. The filter seems like a reasonable request.
#5
@
11 years ago
- Keywords needs-docs removed
17022.2.diff adds a docblock for the months_dropdown_query
filter hook.
#6
@
11 years ago
See my reservations about filtering SQL directly in #17025. Can we filter what the SQL returns instead?
#7
@
11 years ago
- Keywords needs-refresh added
see @nacin's comment - needs alternate filter approach
Note: See
TracTickets for help on using
tickets.
query filter for months_dropdown()