Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.