Make WordPress Core

Changeset 9868


Ignore:
Timestamp:
11/25/2008 02:41:54 AM (16 years ago)
Author:
azaozz
Message:

Fix QE and Reply actions on comments that come in via infinite comment stream

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r9759 r9868  
    466466        get_comment( $comment );
    467467        ob_start();
    468             _wp_comment_row( $comment->comment_ID, $mode, $status );
     468            _wp_comment_row( $comment->comment_ID, $mode, $status, true, true );
    469469            $comment_list_item = ob_get_contents();
    470470        ob_end_clean();
  • trunk/wp-admin/includes/template.php

    r9835 r9868  
    19181918 * @param unknown_type $checkbox
    19191919 */
    1920 function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true ) {
     1920function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, $from_ajax = false ) {
    19211921    global $comment, $post;
    19221922    $comment = get_comment( $comment_id );
     
    20082008                        ( ( ('approve' == $action || 'unapprove' == $action) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
    20092009
    2010                         // Reply and quickedit need a hide-if-no-js span
    2011                         if ( 'reply' == $action || 'quickedit' == $action )
     2010                        // Reply and quickedit need a hide-if-no-js span when not added with ajax
     2011                        if ( ('reply' == $action || 'quickedit' == $action) && ! $from_ajax )
    20122012                            $action .= ' hide-if-no-js';
    20132013
  • trunk/wp-admin/js/edit-comments.js

    r9735 r9868  
    8282
    8383    init : function() {
    84         this.rows = $('#the-comment-list tr');
    85         if ( !this.rows.size() )
    86             this.rows = $('#the-comment-list > div.comment-item');
    8784        var row = $('#replyrow');
    8885
  • trunk/wp-includes/script-loader.php

    r9847 r9868  
    157157            'strong' => __('Strong')
    158158        ) );
    159         $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081117' );
     159        $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20081124' );
    160160        $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
    161161            'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
Note: See TracChangeset for help on using the changeset viewer.