-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Template UI mu-plugin: Run filter after the setup_theme action #69542
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
Conversation
7e07cb8
to
bf3ee96
Compare
OK, it seems that the reason is that the Wrapping this filter in setup_theme may solve the problem. |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Thanks, @t-hamano!
I added a backport label so that e2e tests are also running correctly on |
@Mamaduka Thanks for the review! P.S. I haven't tested it, but can we remove this plugin itself? If needed, I'll try it as a follow-up. |
Let's investigate that in a follow-up. |
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
I just cherry-picked this PR to the wp/6.8 branch to get it included in the next release: 9a7b761 |
…ress#69542) Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
What?
I noticed that some e2e tests that access the site editor are failing in only the test environment. For example, Block themes do not have access to the Site Editor:
Why?
I identified the mu-plugin that enables templates UI is causing these errors. This mu-plugin is only activated in the test environment.
Somehow this
wp_is_block_theme()
seems to returnfalse
, although the active theme is block-based:gutenberg/packages/e2e-tests/mu-plugins/enable-templates-ui.php
Line 17 in 9f77c96
I'm not sure the root cause, but I think this core commit might be related: WordPress/wordpress-develop@5f24c9d
Anyway, let's see if CIs are passing if we remove the mu-plugin that enables templates ui.