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:
parent
f6c3c8fcdf
commit
4c04bf0012
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue