Make WordPress Core

Ticket #61014: 61014.patch

File 61014.patch, 789 bytes (added by rcreators, 2 years ago)

This patch is adding 2 lines of code to inline-edit-post.js to remove id attributes for category input for posts and post parent for pages.

  • 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..3e91b9c17d 100644
    a b window.wp = window.wp || {}; 
    338338                // Remove the ID from the copied row and let the `for` attribute reference the hidden ID.
    339339                $( 'td', editRow ).find('#quick-edit-legend').removeAttr('id');
    340340                $( 'td', editRow ).find('p[id^="quick-edit-"]').removeAttr('id');
     341                $( 'td', editRow ).find('input[id^="in-category-"]').removeAttr('id');
     342                if ( t.type === 'page' ) $( 'td', editRow ).find('select[id="post_parent"]').removeAttr('id');
    341343
    342344                $(t.what+id).removeClass('is-expanded').hide().after(editRow).after('<tr class="hidden"></tr>');
    343345