WordPress.org

Make WordPress Core

Changeset 24299


Ignore:
Timestamp:
05/20/2013 04:10:43 AM (5 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/inline-edit-post.js

    r23681 r24299  
    320320
    321321    $('#the-list tr').each( function(i, el) {
    322         check.push( el.id );
     322        if ( el.id )
     323            check.push( el.id );
    323324    });
    324325
    325     data['wp-check-locked'] = check;
     326    if ( check.length )
     327        data['wp-check-locked'] = check;
    326328});
    327329
Note: See TracChangeset for help on using the changeset viewer.