Hello! 欢迎来到盒子萌!

处理wordpress的WP Editor.md插件无法加载文章编辑界面的问题


avatar
dspirit 2025-02-13 26

[每天记录一个问题,记录十年 Blog]

问题场景:

wordpress后台使用的是WP Editor.md编辑器,但编辑器很久前github就已经停止更新了,导致资源加载时一直转圈圈

1、进入WordPress管理员界面,打开“插件 – 插件文件编辑器

2、选择右上角“选择要编辑的插件”选择WP Editor.md,在“插件文件”中,定位到/src/Admin/Controller.php

3、在第45行左右,找到以下语句并注释掉:

$this->front_static_url = Config::get_option("editor_addres", "editor_style");

替换为:

// this->front_static_url = Config::get_option("editor_addres", "editor_style");this->front_static_url = "/wp-content/plugins/wp-editormd";

踩坑:

迁移网站后,改过的又不可以用了,可使用域名直接访问,不再使用相对路径加载

// this->front_static_url = Config::get_option("editor_addres", "editor_style");this->front_static_url = "https://tzk.asia//wp-content/plugins/wp-editormd";

参考:

解决WP Editor.md插件无法加载文章编辑界面的问题 – HENCH@T

相关阅读