Make WordPress Core

Changeset 12540


Ignore:
Timestamp:
12/25/2009 02:46:40 AM (15 years ago)
Author:
matt
Message:

Change to comments UI to show when a comment is replying to another, and link to the parent comment, so you can understand the context of a given comment when moderating from the dashboard.

Long term, I feel like front-end moderation could be really handy if we can make it as AJAXy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r12515 r12540  
    21472147                echo "<td $attributes>";
    21482148                echo '<div id="submitted-on">';
    2149                 printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), $comment_url, get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia')));
     2149                printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url, get_comment_date( __('Y/m/d') ), get_comment_date( __( 'g:ia' ) ) );
     2150
     2151                if ( $comment->comment_parent ) {
     2152                    $parent = get_comment( $comment->comment_parent );
     2153                    $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
     2154                    $name = apply_filters( 'get_comment_author', $parent->comment_author ); // there's no API function for this
     2155                    printf( __( ' | In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
     2156                }
     2157
    21502158                echo '</div>';
    21512159                comment_text();
     
    25612569</select>
    25622570<input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />
    2563 <a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;">
     2571<a href="#postcustomstuff" class="hide-if-no-js" onClick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;">
    25642572<span id="enternew"><?php _e('Enter new'); ?></span>
    25652573<span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a>
     
    32323240                <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>
    32333241                <input type="text" id="find-posts-input" name="ps" value="" />
    3234                 <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
     3242                <input type="button" onClick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
    32353243
    32363244                <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" />
     
    32423250        </div>
    32433251        <div class="find-box-buttons">
    3244             <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />
     3252            <input type="button" class="button alignleft" onClick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />
    32453253            <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php esc_attr_e('Select'); ?>" />
    32463254        </div>
Note: See TracChangeset for help on using the changeset viewer.