Make WordPress Core


Ignore:
Timestamp:
11/14/2010 06:19:45 PM (13 years ago)
Author:
scribu
Message:

Fix post comments box and remove unused 'add-comment' ajax action. See #15338

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-comments-list-table.php

    r16356 r16371  
    1818
    1919    var $checkbox = true;
    20     var $from_ajax = false;
    2120
    2221    var $pending_count = array();
     
    412411
    413412                // Reply and quickedit need a hide-if-no-js span when not added with ajax
    414                 if ( ( 'reply' == $action || 'quickedit' == $action ) && ! $this->from_ajax )
     413                if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') )
    415414                    $action .= ' hide-if-no-js';
    416415                elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
Note: See TracChangeset for help on using the changeset viewer.