WordPress.org

Make WordPress Core

Changeset 8491


Ignore:
Timestamp:
07/29/2008 10:15:22 PM (10 years ago)
Author:
ryan
Message:

Fix gravatars for infinite comments. Props mdawaffe. fixes #7432 for 2.6

Location:
branches/2.6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/admin-ajax.php

    r8296 r8491  
    393393    list($comments, $total) = _wp_get_comment_list( $status, $search, $start, 1 );
    394394
     395    if ( get_option('show_avatars') )
     396        add_filter( 'comment_author', 'floated_admin_avatar' );
     397
    395398    if ( !$comments )
    396399        die('1');
     
    399402        get_comment( $comment );
    400403        ob_start();
    401             _wp_comment_row( $comment->comment_ID, $mode, false );
     404            _wp_comment_row( $comment->comment_ID, $mode, $status );
    402405            $comment_list_item = ob_get_contents();
    403406        ob_end_clean();
  • branches/2.6/wp-includes/js/wp-lists.js

    r7669 r8491  
    8888            var res = wpAjax.parseAjaxResponse(r, s.response, s.element);
    8989            if ( !res || res.errors ) { return false; }
     90
     91            if ( true === res ) { return true; }
    9092
    9193            jQuery.each( res.responses, function() {
  • branches/2.6/wp-includes/script-loader.php

    r8396 r8491  
    5151    $scripts->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080622' );
    5252
    53     $scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20080411' );
     53    $scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20080729' );
    5454    $scripts->localize( 'wp-lists', 'wpListL10n', array(
    5555        'url' => admin_url('admin-ajax.php')
Note: See TracChangeset for help on using the changeset viewer.