#33238 closed defect (bug) (fixed)
Wrong date in Uploaded to column and missing localization
| Reported by: | pavelevap | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | I18N | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When media file is attached to any post (generally content), you can see in "Uploaded to" column a link to parent post and date. But this date is the same date as in "Date" column, so I think that it should be publishing date of parent post? So in column_parent() function in WP_Media_List_Table we should switch from:
<?php echo get_the_time( __( 'Y/m/d' ) ); ?><br />
to:
<?php echo get_the_time( __( 'Y/m/d' ), $parent ); ?><br />
And there is also related problem with hardcoded comma, which can be problem for some languages, because it is not possible to localize it:
echo $title; } ?></strong>, <?php echo get_the_time( __( 'Y/m/d' ), $parent ); ?><br />
There should be something like %1$s, %2$s with translators comment that first is post title and second post date?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
33238.1.patch Here's the change where the date is based off parent post. I also got rid of the "," and replaced it with a "<br />" like is done with the Title column to separate the media title from the file name.