From 657612fbaab6001fd2a244154d50a00fa4c4dd92 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 20 May 2013 04:10:43 +0000 Subject: [PATCH] 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 --- wp-admin/js/inline-edit-post.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/js/inline-edit-post.js b/wp-admin/js/inline-edit-post.js index db4e80bc3c..603fb01091 100644 --- a/wp-admin/js/inline-edit-post.js +++ b/wp-admin/js/inline-edit-post.js @@ -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));