#33238 closed defect (bug) (fixed)
Wrong date in Uploaded to column and missing localization
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
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?
Attachments (1)
Change History (6)
#1
@
10 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
- Version trunk deleted
#3
@
10 years ago
Maybe it could be better to let translators choosing best format? I would prefer for example brackets for date, for some languages can be also comma good solution...
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.