WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.49k stars 4.18k forks source link

PluginPostStatusInfo panel appears after Move to Trash in WP 6.7 RC2 #66652

Closed laurelfulford closed 1 day ago

laurelfulford commented 1 day ago

Description

In WP 6.7 RC, any controls/content added via PluginPostStatusInfo now appears after the 'Move to Trash' button when it appears.

In WP 6.6.2, controls added to PluginPostStatusInfo appear visually grouped with the other information, and they appear above trash button in previous WP versions -- one example is this older screenshot in the docs.

It's entirely possible that this behaviour is intentional. I labelled as a bug since it's a change from when the Trash button last displayed at the bottom of this panel in a WordPress release, but I could definitely be missing context for the change 🙂 The docs seem to indicate this is the way to add elements to this section, but if there's a newer recommendation (like moving these kinds of things to their own panels), just let me know!

Step-by-step reproduction instructions

  1. Add something to the Summary panel in the editor using PluginPostStatusInfo.
  2. Create a new post or page.
  3. Add some content and save, so the 'Move to Trash' button appears.
  4. Note it's inserted above your PluginPostStatusInfo content.

Screenshots, screen recording, code snippet

For comparison, screenshots of where a control added via PluginPostStatusInfo ends up in different versions of WordPress:

WordPress 6.5.5: Image

WordPress 6.6.2: Image

WordPress 6.7 RC2: Image

Environment info

This was recreated using WordPress 6.7 RC 2 and a custom classic theme (that's inserting the toggle). This also happens with the latest WordPress release (6.6.2) and Gutenberg v. 19.5.0.

Please confirm that you have searched existing issues in the repo.

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Please confirm which theme type you used for testing.

Mamaduka commented 1 day ago

Thanks for reporting the regression, @laurelfulford!

It should be fixed via #66665.