Multisite-Language-Switcher
Multisite-Language-Switcher copied to clipboard
Page connection won’t be saved
Describe the bug The settings to connect two pages of different blocks don’t work for me. The submit button on the meta box does nothing and if I save the page and reload, the settings of MSLS are reset, unfortunately.
There’s nothing in the console, no error in the network tab and no log in the debug.log.
It seems to be the same issue as in #134. I can reproduce it locally and remote on production.
To Reproduce Steps to reproduce the behavior:
- Select a connected page in a different language
- Update the page to save changes
- Reload the editor
Expected behaviour The settings are saved.
Screenshots
https://user-images.githubusercontent.com/1018979/160284867-331bcac3-0564-4c10-9beb-e00c9e5cf25b.mp4
Environment (please complete the following information):
- OS: macOS
- Browser: Safari/Chrome
- PHP Version: 7.4
- Plugin Version: 2.4.12
After a little further trial and error I noticed that the plugin doesn’t like it if there are multiple sites with the same language.
For me, I have two different sites in German and want to make them available in English, too. But in the same multisite. I now use the filter msls_blog_collection_construct to get only the relevant other site by its URL. This seem to be working. But I would love to see proper support for such a variation in the plugin itself. Or at least an error message. 😄