WordPress.org

Make WordPress Core

Changeset 8490


Ignore:
Timestamp:
07/29/08 22:14:53 (6 years ago)
Author:
ryan
Message:

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

Location:
trunk
Files:
3 edited

Legend:

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

    r8296 r8490  
    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(); 
  • trunk/wp-includes/js/wp-lists.js

    r7669 r8490  
    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() { 
  • trunk/wp-includes/script-loader.php

    r8395 r8490  
    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.