-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block Theme Previews: rename GET variable and prepare for core compat #51738
Conversation
053c267
to
a34481c
Compare
Co-authored-by: Andrei Draganescu <[email protected]>
a34481c
to
fc54791
Compare
Size Change: +60 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work as advertised
Flaky tests detected in 6388f62. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5335529395
|
Let's bring this in. since it's needed for 6.3, the middleware was using the GB variable |
…WordPress#51738) * renamed get variable and loaded actions and filters conditionally Co-authored-by: Andrei Draganescu <[email protected]> * removed test code * linter --------- Co-authored-by: Andrei Draganescu <[email protected]>
What?
When we backport the block theme previews to WordPress Core, we need to update the URL get parameters to
wp_theme_preview
instead ogutenberg_theme_preview
. We should make the same change to Gutenberg so that we use the same param in both places. See WordPress/wordpress-develop#4627.Why?
So that we have the same URL parameter in both places.
Users that decide to stay on an older version of core after 6.3 but do update the GB plugin will lose access to the theme preview functionality unless we build support for both parameters. Since this hasn't been long in the plugin, I don't think there's much reason to maintain both, so the core version is preferred. Happy to hear any opinions against this decision.
How?
Just rename the parameter.
Testing Instructions