Post locks: do not check locks on the Posts screen if the list table is empty, see #23697

git-svn-id: https://develop.svn.wordpress.org/trunk@24299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2013-05-20 04:10:43 +00:00
parent 0892fe10b9
commit 657612fbaa

View File

@ -319,10 +319,12 @@ $( document ).on( 'heartbeat-tick.wp-check-locked', function( e, data ) {
var check = [];
$('#the-list tr').each( function(i, el) {
check.push( el.id );
if ( el.id )
check.push( el.id );
});
data['wp-check-locked'] = check;
if ( check.length )
data['wp-check-locked'] = check;
});
}(jQuery));