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

git-svn-id: https://develop.svn.wordpress.org/trunk@16371 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-14 18:19:45 +00:00
parent 9ff9211249
commit 9f69a2211f
2 changed files with 6 additions and 34 deletions

View File

@@ -17,7 +17,6 @@
class WP_Comments_List_Table extends WP_List_Table {
var $checkbox = true;
var $from_ajax = false;
var $pending_count = array();
@@ -411,7 +410,7 @@ class WP_Comments_List_Table extends WP_List_Table {
( ( ( 'approve' == $action || 'unapprove' == $action ) && 2 === $i ) || 1 === $i ) ? $sep = '' : $sep = ' | ';
// Reply and quickedit need a hide-if-no-js span when not added with ajax
if ( ( 'reply' == $action || 'quickedit' == $action ) && ! $this->from_ajax )
if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') )
$action .= ' hide-if-no-js';
elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) )