Make WordPress Core

Changeset 9879


Ignore:
Timestamp:
11/25/2008 09:11:05 PM (17 years ago)
Author:
ryan
Message:

Comment screen tweaks. see #8344

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-fresh.css

    r9865 r9879  
    554554}
    555555
    556 #edit-slug-box strong, .tablenav .displaying-num {
     556#edit-slug-box strong, .tablenav .displaying-num, #submitted-on {
    557557    color: #777;
    558558}
  • trunk/wp-admin/edit-form-advanced.php

    r9871 r9879  
    426426<thead>
    427427    <tr>
     428    <th scope="col" class="column-author"><?php _e('Author') ?></th>
    428429    <th scope="col" class="column-comment"><?php echo _c('Comment|noun') ?></th>
    429     <th scope="col" class="column-author"><?php _e('Author') ?></th>
    430     <th scope="col" class="column-date"><?php _e('Submitted') ?></th>
    431430  </tr>
    432431</thead>
  • trunk/wp-admin/includes/template.php

    r9876 r9879  
    765765            $_wp_column_headers[$page] = array(
    766766                'cb' => '<input type="checkbox" />',
     767                'author' => __('Author'),
    767768                'comment' => _c('Comment|noun'),
    768                 'author' => __('Author'),
    769                 'date' => __('Submitted'),
     769                //'date' => __('Submitted'),
    770770                'response' => __('In Response To')
    771771            );
     
    19251925
    19261926    if ( current_user_can( 'edit_post', $post->ID ) ) {
    1927         $post_link = "<a href='" . get_edit_post_link($post->ID) . "'>";
     1927        $post_href = get_edit_post_link($post->ID);
     1928        $post_link = "<a href='" . $post_href . "'>";
    19281929        $post_link .= get_the_title($comment->comment_post_ID) . '</a>';
    19291930    } else {
     1931        $post_href = '';
    19301932        $post_link = get_the_title($comment->comment_post_ID);
    19311933    }
     
    19701972            case 'comment':
    19711973                echo "<td $attributes>";
    1972                 if ( 'detail' == $mode || 'single' == $mode ) comment_text(); ?>
     1974                echo '<div id="submitted-on">';
     1975                if ( !empty($post_href) )
     1976                    printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), $post_href, get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
     1977                else
     1978                    printf(__('Submitted on %1$s at %2$s</a>'), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
     1979                echo '</div>';
     1980                comment_text(); ?>
    19731981                <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
    19741982                <textarea class="comment" rows="3" cols="10"><?php echo $comment->comment_content; ?></textarea>
Note: See TracChangeset for help on using the changeset viewer.