WordPress.org

Make WordPress Core

Opened 6 years ago

Last modified 10 months ago

#15921 assigned enhancement

date column filter in media list table

Reported by: gonahkar Owned by: chriscct7
Milestone: Future Release 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)

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

Download all attachments as: .zip

Change History (7)

@gonahkar
6 years ago

edited file

#1 @dd32
6 years ago

What is an example of the purpose of this filter?

#2 @gonahkar
6 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 6 years ago by gonahkar (previous) (diff)

#3 @dd32
6 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.

#4 @scribu
6 years ago

  • Keywords needs-patch added; 3.2-early removed

#5 @chriscct7
2 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?

#6 @chriscct7
10 months ago

  • Owner set to chriscct7
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.