Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update widgets page URL in plugin when in WordPress 5.8 or greater #32267

Closed
talldan opened this issue May 27, 2021 · 1 comment
Closed

Update widgets page URL in plugin when in WordPress 5.8 or greater #32267

talldan opened this issue May 27, 2021 · 1 comment
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Task Issues or PRs that have been broken down into an individual action to take

Comments

@talldan
Copy link
Contributor

talldan commented May 27, 2021

Description

I noticed when using the Gutenberg plugin with WordPress 5.8, the widget page still loads on the URL wp-admin/themes.php?page=gutenberg-widgets. It's possible to still access the core widget page at wp-admin/widgets.php.

Instead the plugin should override core block-based widget page so that there's no confusion, the same way the post editor in Gutenberg uses the same URL at the post editor in core.

On WP versions prior to 5.8, the wp-admin/themes.php?page=gutenberg-widgets URL is still fine as widgets.php still displays the old widgets screen.

See the comments in slack from @noisysocks for further info:
https://wordpress.slack.com/archives/C01D71823PB/p1622090672068700

Step-by-step reproduction instructions

  1. Use WordPress 5.8 and the Gutenberg plugin
  2. Navigate to the widgets screen
  3. Notice the URL

Expected behaviour

The URL should be widgets.php

Actual behaviour

The URL is not widgets.php

@talldan talldan added [Type] Task Issues or PRs that have been broken down into an individual action to take [Feature] Widgets Screen The block-based screen that replaced widgets.php. labels May 27, 2021
@tellthemachines
Copy link
Contributor

Closing as this has been fixed in #32299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

No branches or pull requests

2 participants