mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 11:35:48 +00:00
Comments List Table:
* Properly increment/decrement approved/pending bubbles in `response` column See #11200. Built from https://develop.svn.wordpress.org/trunk@33656 git-svn-id: http://core.svn.wordpress.org/trunk@33623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
df618f3461
commit
657d0f6918
@ -35,7 +35,8 @@ setCommentsList = function() {
|
||||
|
||||
diff = $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1;
|
||||
updatePending( diff );
|
||||
updateCountText( 'span.approved-count', -1 * diff );
|
||||
updateCountText( 'span.approved-count', -1 * diff );
|
||||
updateCountText( 'span.comment-count-approved', -1 * diff );
|
||||
};
|
||||
|
||||
// Send current total, page, per_page and url
|
||||
@ -130,7 +131,7 @@ setCommentsList = function() {
|
||||
};
|
||||
|
||||
updatePending = function( diff ) {
|
||||
$('span.pending-count').each(function() {
|
||||
$('span.pending-count, .comment-count-pending').each(function() {
|
||||
var a = $(this), n = getCount(a) + diff;
|
||||
if ( n < 1 )
|
||||
n = 0;
|
||||
@ -289,7 +290,8 @@ setCommentsList = function() {
|
||||
}
|
||||
|
||||
if ( approvedDiff ) {
|
||||
updateCountText( 'span.approved-count', approvedDiff );
|
||||
updateCountText( 'span.approved-count', approvedDiff );
|
||||
updateCountText( 'span.comment-count-approved', approvedDiff );
|
||||
}
|
||||
|
||||
if ( spamDiff ) {
|
||||
|
2
wp-admin/js/edit-comments.min.js
vendored
2
wp-admin/js/edit-comments.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33655';
|
||||
$wp_version = '4.4-alpha-33656';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user