Make WordPress Core


Ignore:
Timestamp:
08/20/2015 04:35:21 PM (10 years ago)
Author:
wonderboymusic
Message:

Comment List Tables:

  • Ensure that dynamic bubble counts are in sync by comment_post_ID
  • Scope :animated to #the-comment-list

See #11200.

File:
1 edited

Legend:

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

    r33655 r33662  
    358358            'supplemental' => array(
    359359                'status' => $comment ? $comment->comment_approved : '',
     360                'postId' => $comment ? $comment->comment_post_ID : '',
    360361                'time' => $time
    361362            )
     
    399400        'supplemental' => array(
    400401            'status' => $comment ? $comment->comment_approved : '',
     402            'postId' => $comment ? $comment->comment_post_ID : '',
    401403            'total_items_i18n' => sprintf( _n( '%s item', '%s items', $total ), number_format_i18n( $total ) ),
    402404            'total_pages' => ceil( $total / $per_page ),
     
    10431045
    10441046    if ( $comment_auto_approved )
    1045         $response['supplemental'] = array( 'parent_approved' => $parent->comment_ID );
     1047        $response['supplemental'] = array( 'parent_approved' => $parent->comment_ID, 'parent_post_id' => $parent->comment_post_ID );
    10461048
    10471049    $x = new WP_Ajax_Response();
Note: See TracChangeset for help on using the changeset viewer.