mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-22 16:52:42 +00:00
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:
parent
0892fe10b9
commit
657612fbaa
@ -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
Block a user