WordPress.org

Make WordPress Core

Ticket #2568: admin-functions.php.diff

File admin-functions.php.diff, 933 bytes (added by Sewar, 9 years ago)

Oops, I forget add admin-functions.php to patch, it contain patch for edit timestamp in post/page editing.

  • E:/PHP/WordPress/SVN/wp-admin/admin-functions.php

     
    953953} 
    954954 
    955955function touch_time($edit = 1, $for_post = 1) { 
    956         global $month, $post, $comment; 
     956        global $wp_locale, $post, $comment; 
    957957 
    958958        if ( $for_post ) 
    959959                $edit = ( ('draft' == $post->post_status) && (!$post->post_date || '0000-00-00 00:00:00' == $post->post_date) ) ? false : true; 
     
    979979                } else { 
    980980                        $ii = "$i"; 
    981981                } 
    982                 echo ">".$month["$ii"]."</option>\n"; 
     982                echo ">".$wp_locale->month["$ii"]."</option>\n"; 
    983983        } 
    984984?> 
    985985</select> 
     
    991991<?php 
    992992        if ( $edit ) { 
    993993                _e('Existing timestamp'); 
    994                 echo ": {$month[$mm]} $jj, $aa @ $hh:$mn"; 
     994                echo ": {$wp_locale->month[$mm]} $jj, $aa @ $hh:$mn"; 
    995995        } 
    996996?> 
    997997</fieldset>