Make WordPress Core

Ticket #35833: 35833.3.diff

File 35833.3.diff, 902 bytes (added by lamarajan, 22 months ago)

This it Patch file to fix the issue related to class widefat.

  • src/js/_enqueues/admin/inline-edit-post.js

    diff --git a/src/js/_enqueues/admin/inline-edit-post.js b/src/js/_enqueues/admin/inline-edit-post.js
    index 65cd342c28..b433f64c6d 100644
    a b window.wp = window.wp || {}; 
    333333
    334334                // Add the new edit row with an extra blank row underneath to maintain zebra striping.
    335335                editRow = $('#inline-edit').clone(true);
    336                 $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );
    337 
     336                if( $('.the-list').lenth > 0 ){
     337                        $( 'td', editRow ).attr( 'colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length );
     338                }
     339       
    338340                // Remove the ID from the copied row and let the `for` attribute reference the hidden ID.
    339341                $( 'td', editRow ).find('#quick-edit-legend').removeAttr('id');
    340342                $( 'td', editRow ).find('p[id^="quick-edit-"]').removeAttr('id');