WordPress-选择页面特色图像时媒体库样式无法正确加载?
我正在尝试使用块编辑器将特色图像设置到某些页面,
因此当我按下选择特色图像时,媒体库的上传 UI 未正确加载其自己的样式表(但获取图像并搜索工作正常)
该问题仅出现在某些页面上(具有相同的模板!!!)
例如:我有 2 个具有相同默认模板的页面。
- 关于我们页面(存在问题)。
- 员工页面(选择精选图片时完全没有问题)
我尝试过的:
- 检查了每个插件的停用和激活(没有更改)
- 添加
define( 'CONCATENATE_SCRIPTS', false );
在wp-config.php
文件中(没有更改) - 检查控制台没有错误。
- 2 个不同设备上的不同浏览器(没有变化)
WP 版本:5.9.1
任何想法将不胜感激,谢谢。
I'm trying to set a featured image to some pages using block editor,
So when I press select featured images the upload UI of the media library is not loading its own stylesheet correctly ( but get images and search are working perfectly)
The problem occurs only on some pages ( with the same template!!! )
Ex: I have 2 pages with the same default template.
- About us page ( problem exists ).
- Staff page ( no problem at all when selecting featured images )
This is a screenshot of the problem
What I've tried:
- Checked every single plugin deactivate&activate ( no changes)
- Add a
define( 'CONCATENATE_SCRIPTS', false );
inwp-config.php
file ( no changes) - Checked console there are no errors.
- Different browsers on 2 different devices ( no changes )
WP Version: 5.9.1
Any ideas would be appreciated, Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过一番搜索,问题出在包含 ACF 块的页面中
ACF 插件与最新的 WP 5.9.1 临时修复不兼容,
直到更新发布为止:
1- 在您的 functions.php 文件中添加这些行:
或
回滚到之前的 WordPress 版本,例如 5.9
After some search, the problem was in the pages which contains ACF blocks
ACF plugin is not compatible with the latest WP 5.9.1
temporary fixes until the update has been released :
1- In your functions.php file add these lines:
Or
rollback to the previous version of WordPress like 5.9