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

git-svn-id: http://core.svn.wordpress.org/trunk@24299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-05-20 04:10:43 +00:00
parent f6c3c8fcdf
commit 4c04bf0012

View File

@ -319,10 +319,12 @@ $( document ).on( 'heartbeat-tick.wp-check-locked', function( e, data ) {
var check = []; var check = [];
$('#the-list tr').each( function(i, el) { $('#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)); }(jQuery));