Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#49694 new defect (bug)

All pages menu on admin panel has DOM errors

Reported by: iarovuo's profile iarovuo Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.3.2
Component: Administration Keywords: has-patch
Focuses: ui, administration Cc:

Description

Opening All pages menu on admin panel, produces errors in console with
[DOM] Found 2 elements with non-unique id #post_parent
<redacted>/wp-admin/edit.php?post_type=page:1

Checking page content, indeed there are TWO id="post_parent" in the TBODY id=inlineedit, and other later in the TR id=bulk-edit

Bug appears with all plugins turned off, and fresh install as well.
Reproduce: Simply open the "All pages" menu on admin panel, and see the console for the DOM form errors.

Attachments (1)

49694.diff (698 bytes) - added by noisysocks 4 years ago.

Download all attachments as: .zip

Change History (4)

#1 @iarovuo
4 years ago

This bug is also in WP 5.4

#2 @man4toman
4 years ago

Hi
The duplicated id post_parent, come from inline edit and bulk edit table in Pages admin area.

@noisysocks
4 years ago

#3 @noisysocks
4 years ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Awaiting Review to Future Release

Thanks for the report @iarovuo!

49694.diff fixes this by distinguishing between the inline edit dropdown and the bulk edit dropdown.

Note: See TracTickets for help on using tickets.