-
Notifications
You must be signed in to change notification settings - Fork 2k
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
'Show Template' defaulting to on for non-English(US) languages #97494
Comments
📌 REPRODUCTION RESULTS
📌 ACTIONS
📌 Message to Author While checking this on a self-hosted website, I noticed the option is turned on by default on all languages. @annezazu do you know if language should be a factor on how this feature works? |
My understanding is that on WPCOM we have it disabled deliberately. |
No! This shouldn't be different based on language. |
This happened on this interaction: 9176633-zd-a8c |
Support References This comment is automatically generated. Please do not edit it.
|
@youknowriad do you know why this might be? Pinging you based on your work in WordPress/gutenberg#62304 which caused the template to show for pages. Oddly enough, on my simple site, I don't see the template showing in either flow (Pages > Add New, Site Editor > Pages) when it should. @jordesign where are you seeing that this was intentionally turned off? You linked to a thread I was a part of that has no indication of this being disabled for WordPress.com. To be clear, I expected the template to show for all pages when 19.8 was put on WordPress.com. |
@annezazu - Apologies - that was my incorrect interpretation of that thread. I suppose that the issue, then, is the inconsistency generally depending on language |
I added an update message to the issue. Related dotcom-escalation convo p1734525664059729-slack-C02FMH4G8 |
I took a look at this, I made some progress but don't 100% know what the solution looks like right now, and it's rather late. The issue is happening on the front-end because It's easier to try and debug this by using the wp.com api console to visit If I comment out the call to The way that When this method is called a block theme isn't necessarily active. On some calls it's the a8c public-api placeholder theme that is active, which is not a block theme. Temporarily commenting out the As to why it works for non-default locales, I stopped digging but my assumption is that locale switching happens after we've switched from public-api to the target site. As part of switching locales we probably re-run the post type registration so that the localised strings are used. As the theme is now a block theme, it passes the check in |
Last time we ran up against the issue of I think there are a few (untested!) options here, but maybe others can think of more:
cc @david-binda, have you seen a solution to this kind of problem when running core merges? cc @youknowriad for any perspective on an upstream change |
That seems correct. The I believe that calling the However, while testing the approach, I run into https://github.com/Automattic/jetpack/blob/ff26ecb6c6ac8876b9562205034b437a9e8efe87/projects/packages/jetpack-mu-wpcom/src/features/wpcom-hotfixes/wpcom-hotfixes.php#L16 which reverting the addition. Looks like there is some related issue. |
I've prepared a PR adding the |
Oh yeah sorry, I should've mentioned that. There are multiple things going on here!
Thanks for opening a PR, I'm taking a look now. |
Quick summary
Update: The "Show Template" option should be on by default for all languages.
Quick summary
If a user's account language is set to English(US), the 'Site Template' option (from the preview menu and/or 'Template' setting in the sidebar) doesn't default to on.
This is not matching the default Gutenberg behaviour on self-hosted sites.
Steps to reproduce
What you expected to happen
The Page content should be displayed with the page template (header, footer, etc).
What actually happened
The page editor only shows the page content.
Impact
Some (< 50%)
Available workarounds?
Yes, difficult to implement
If the above answer is "Yes...", outline the workaround.
User's affected by this can switch to English as their account language temporarily.
Platform (Simple and/or Atomic)
Simple
Logs or notes
These seems to be effecting Simple Sites.
However I have noticed in testing my Atomic site that the 'Site Template' also shows by default - I'm not sure if this is by design.
The text was updated successfully, but these errors were encountered: