Make WordPress Core

Opened 5 years ago

Last modified 12 months ago

#15921 new enhancement

date column filter in media list table

Reported by: gonahkar Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.1
Component: Date/Time Keywords: needs-patch
Focuses: Cc:


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

<td <?php echo $attributes ?>><?php echo $h_time ?></td>


<td <?php echo $attributes ?>><?php echo apply_filters( 'media_date_column_time', $h_time); ?></td>

Attachments (1)

class-wp-media-list-table.php (13.4 KB) - added by gonahkar 5 years ago.
edited file

Download all attachments as: .zip

Change History (6)

@gonahkar5 years ago

edited file

comment:1 @dd325 years ago

What is an example of the purpose of this filter?

comment:2 @gonahkar5 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.

Last edited 5 years ago by gonahkar (previous) (diff)

comment:3 @dd325 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.

comment:4 @scribu5 years ago

  • Keywords needs-patch added; 3.2-early removed

comment:5 @chriscct712 months 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?

Note: See TracTickets for help on using tickets.