Same here.
WordPress 6.4.1でも同じ問題が起こっています。
色々検証してみましたが、ローカル環境では再現せず、レンタルサーバー上にあるサイトでは不具合が起きています。
WordPress 6.3.2に戻すと改善するため、WordPress 6.4で変更された部分の相性が悪いようです。
具体的な症状としては、スマートフォン用に指定したテーマが読み込まれず、PC用のテーマをスマートフォン用テーマのパスで読み込もうとする挙動になり、スマートフォンサイトが機能しなくなります。
PCからの閲覧には問題は起きません。
I am having the same problem with WordPress 6.4.1.
I have verified various things, but I cannot reproduce the problem in my local environment, but the problem is happening on a site on a rental server.
It seems to be incompatible with the changes made in WordPress 6.4, as it recovers when I revert to WordPress 6.3.2.
The specific symptom is that the theme specified for smartphones will not load, and the behavior will be to try to load the PC theme with the path of the smartphone theme, and the smartphone site will not function.
The problem does not occur when viewing the site from a PC.
Thank you for your report.
I have confirmed that the theme does not switch. The occurrence conditions have been confirmed on the production environment server and WordPress 6.4 or later.
It did not occur in the development environment or local environment. There seems to be no particular problem with the implementation code. The unit test also passed.
At the moment, I don’t know why it only occurs on the production environment server.
The situation is currently difficult to pinpoint, so I will take action as soon as I know.
Until then, if you want to use the Multi Device Switcher plugin, please use it with WordPress 6.3.
日本語:
報告ありがとうございます。
テーマが切り替わらない現象を確認しました。発生条件は、本番環境サーバと WordPress 6.4 以降で確認しています。
開発環境やローカル環境では、発生しませんでした。実装コードも特に問題がなさそうなようです。ユニットテストも通りました。
いまのところ、なぜ本番環境サーバだけで生じているのか、原因がわかりません。
現在、特定が難しい状況ですので、分かり次第、対応をしたいと思います。
それまでプラグインを使用する場合は、WordPress 6.3 でお使いください。
This is a related issue.
Since WordPress 6.4, the functions.php of a theme moved to a different location using register_theme_directory is no longer called
https://core.trac.ww.wp.xz.cn/ticket/59847
I have confirmed that themes can be switched using Multi Device Switcher in WordPress 6.4.2.
The bug has been fixed in WordPress Core, and Multi Device Switcher now works properly.
Bug report: https://core.trac.ww.wp.xz.cn/ticket/59847
It seems to have been caused by a change (breaking change) at https://core.trac.ww.wp.xz.cn/changeset/56635.
The bug is fixed in https://core.trac.ww.wp.xz.cn/changeset/57129
This issue was resolved in WordPress 6.4.2.
日本語:
WordPress 6.4.2 でテーマが切り替わることを確認しました。
WordPress本体にバグ修正が入り、Multi Device Switcher が正常に動くようになりました。
バグ報告: https://core.trac.ww.wp.xz.cn/ticket/59847
https://core.trac.ww.wp.xz.cn/changeset/56635 での変更 (破壊的な変更)で生じたようです。
以下でバグが修正され、https://core.trac.ww.wp.xz.cn/changeset/57129
WordPress 6.4.2で解消しました。