WordPress.org

Make WordPress Core

Opened 2 weeks ago

Closed 2 weeks ago

#49424 closed defect (bug) (duplicate)

Breaking change to DOM/CSS from #poststuff to .poststuff

Reported by: elliotcondon Owned by:
Milestone: Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords:
Focuses: Cc:

Description

The element used to wrap admin page HTML has changed in WP 5.4 from <div id="poststuff"> to <div class="poststuff">.

This change will cause major issues for plugins and themes that include css/js relying on that well-established wrapping element to exist.

Q1. Is it be possible to revert this change from class back to id?
Q2. If the change must go ahead, can we retain backwards compatibility by also adding in the additional id attribute?

Thanks,
Elliot

Change History (1)

#1 @SergeyBiryukov
2 weeks ago

  • Component changed from General to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome back to WordPress Trac!

Thanks for the report, this is being tracked in #46964 for now. I agree the current state is not ideal, we're exploring other approaches there.

Note: See TracTickets for help on using tickets.