Opened 15 years ago
Closed 7 years ago
#15921 closed enhancement (wontfix)
date column filter in media list table
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Date/Time | Keywords: | needs-patch |
Focuses: | Cc: |
Description
please add a filter for date column in media list table, like posts list table.
in wp-admin\includes\class-wp-media-list-table.php @ line:288
replace:
<td <?php echo $attributes ?>><?php echo $h_time ?></td>
with:
<td <?php echo $attributes ?>><?php echo apply_filters( 'media_date_column_time', $h_time); ?></td>
Attachments (1)
Change History (9)
#2
@
15 years ago
Replying to dd32:
What is an example of the purpose of this filter?
We use Iranian calendar in wordpress and need date filters.
#3
@
15 years ago
- Keywords 3.2-early added; media table removed
- Milestone changed from Awaiting Review to Future Release
marking as a possibility for 3.2, We'd really have to review a lot of area's to make sure that the date can fit in all the possible spots, not just this particular spot.
#5
@
11 years ago
As opposed to a date filter, couldn't this be passed into one of the internationalization date functions along the lines of date_i18n?
#7
@
7 years ago
I am not sure this needs such a custom filter in such a specific place.
By now the output of WP_Media_List_Table->column_date()
is pretty elaborate and switches conditionally between relative and absolute output.
If there are some very specific output needs for this (that cannot be handled on WP localisation level) it is likely that they are better addressed by adding a custom column altogether.
edited file