Don't refill the comment list when undoing a spam action on a comment. props greuben, fixes #15884.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-12-19 21:14:09 +00:00
parent b43210d793
commit dfe2759a06
3 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ setCommentsList = function() {
}
}
if ( theExtraList.size() == 0 || theExtraList.children().size() == 0 || untrash ) {
if ( theExtraList.size() == 0 || theExtraList.children().size() == 0 || untrash || unspam ) {
return;
}

File diff suppressed because one or more lines are too long

View File

@ -313,7 +313,7 @@ function wp_default_scripts( &$scripts ) {
'l10n_print_after' => 'try{convertEntities(listTableL10n);}catch(e){};'
) );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101214' );
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101219' );
$scripts->add_data( 'admin-comments', 'group', 1 );
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),