WordPress.org

Make WordPress Core

Ticket #2601: 2601.diff

File 2601.diff, 4.2 KB (added by MichaelH, 9 years ago)

Changes 4 panels to use default date and time settings

  • wp-admin/admin-functions.php

     
    681681      <?php echo $pad; ?><?php the_title() ?>  
    682682    </td>  
    683683    <td><?php the_author() ?></td> 
    684     <td><?php echo mysql2date('Y-m-d g:i a', $post->post_modified); ?></td>  
     684    <td><?php echo mysql2date(get_settings('date_format') .' ' . get_settings('time_format'), $post->post_modified); ?></td>  
    685685        <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e('View'); ?></a></td> 
    686686    <td><?php if ( current_user_can('edit_page', $id) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __('Edit') . "</a>"; } ?></td>  
    687687    <td><?php if ( current_user_can('edit_page', $id) ) { echo "<a href='page.php?action=delete&amp;post=$id' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . sprintf(__("You are about to delete the &quot;%s&quot; page.\\n&quot;OK&quot; to delete, &quot;Cancel&quot; to stop."), wp_specialchars(get_the_title('','',0), 1)) . "' );\">" . __('Delete') . "</a>"; } ?></td>  
  • wp-admin/edit-comments.php

     
    113113 
    114114                <?php comment_text() ?> 
    115115 
    116         <p><?php _e('Posted'); echo ' '; comment_date('M j, g:i A');   
     116        <p><?php _e('Posted'); echo ' '; comment_date(get_settings('date_format') .' ' . get_settings('time_format'));   
    117117                        if ( current_user_can('edit_post', $comment->comment_post_ID) ) { 
    118118                                echo " | <a href=\"comment.php?action=editcomment&amp;comment=".$comment->comment_ID."\">" . __('Edit Comment') . "</a>"; 
    119119                                echo " | <a href=\"comment.php?action=deletecomment&amp;p=".$comment->comment_post_ID."&amp;comment=".$comment->comment_ID."\" onclick=\"return deleteSomething( 'comment', $comment->comment_ID, '" . sprintf(__("You are about to delete this comment by &quot;%s&quot;.\\n&quot;Cancel&quot; to stop, &quot;OK&quot; to delete."), wp_specialchars( $comment->comment_author, 1 ))  . "' );\">" . __('Delete Comment') . "</a> "; 
  • wp-admin/edit.php

     
    163163 
    164164        case 'date': 
    165165                ?> 
    166                 <td><?php the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td> 
     166                <td><?php the_time(get_settings('date_format') .' \<\b\r \/\> ' . get_settings('time_format')); ?></td> 
    167167                <?php 
    168168                break; 
    169169        case 'title': 
  • wp-admin/moderation.php

     
    142142        else $class = ''; 
    143143        echo "\n\t<li id='comment-$comment->comment_ID' $class>";  
    144144        ?> 
    145         <p><strong><?php _e('Name:') ?></strong> <?php comment_author_link() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a> | <strong><?php _e('Date:') ?></strong> <?php comment_date(); ?></p> 
     145        <p><strong><?php _e('Name:') ?></strong> <?php comment_author_link() ?> <?php if ($comment->comment_author_email) { ?>| <strong><?php _e('E-mail:') ?></strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) { ?> | <strong><?php _e('URI:') ?></strong> <?php comment_author_url_link() ?> <?php } ?>| <strong><?php _e('IP:') ?></strong> <a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a> | <strong><?php _e('Date:') ?></strong> <?php echo $comment_date; ?></p> 
    146146<?php comment_text() ?> 
    147147<p><?php 
    148148echo '<a href="comment.php?action=editcomment&amp;comment='.$comment->comment_ID.'">' . __('Edit') . '</a> | ';?>