[wp-trac] [WordPress Trac] #33238: Wrong date in Uploaded to column and missing localization

WordPress Trac noreply at wordpress.org
Mon Aug 3 10:07:47 UTC 2015


#33238: Wrong date in Uploaded to column and missing localization
--------------------------+-----------------------------
 Reporter:  pavelevap     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33238>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list