[wp-trac] [WordPress Trac] #33579: want to change the $monthtext in touch_time(/wp-admin/includes/template.php)

WordPress Trac noreply at wordpress.org
Fri Aug 28 02:06:45 UTC 2015


#33579: want to change the $monthtext in touch_time(/wp-
admin/includes/template.php)
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Date/Time     |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There is a problem with the editing of existing posts ( and comments )
 date.

 Japanese post here:
 [https://ja.forums.wordpress.org/topic/153017?replies=3]

 function touch_time(template.php line787-788)
 {{{
 $monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
 $month .= "\t\t\t" . '<option value="' . $monthnum . '" data-text="' .
 $monthtext . '" ' . selected( $monthnum, $mm, false ) . '>';
 }}}

 post.js(post.min.js)
 {{{
 postL10n.dateFormat
         .replace( '%1$s', $( 'option[value="' + mm + '"]', '#mm' ).attr(
 'data-text' ) )
 }}}

 for example the Japanese of today:
 {{{
 $monthtext = '8月';
 postL10n.dateFormat = '%3$s年%1$s月%2$s日 @ %4$s:%5$s';

 // replaced text
 '2015年8月月28日 @ 10:50'
 }}}

 In this way '月' has ended up overlapping.
 The same thing might have occurred in other languages.

 get_month_abbrev method has also been used in such calendar display.
 I feel the need for a new method.

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


More information about the wp-trac mailing list