MENU

Mirages 插件冲突解决方案

August 30, 2018 • Read: 6139 • 分享

主题提供了主题专用插件,部分功能的启用需依赖插件,但因为 Typecho 插件的调用机制问题,目前会和部分插件会有冲突,例如 APlayer 等。

如果你在使用过程中发现了冲突存在,那么可以参考此文档进行解决。

如果你在你产生冲突的插件(如 APlayer)的Plugin.php中的public static function activate()方法中发现了下面这些代码中的其中一个或多个

1.
Typecho_Plugin::factory('Widget_Abstract_Contents')->content = 
2.
Typecho_Plugin::factory('Widget_Abstract_Contents')->excerpt = 
3.
Typecho_Plugin::factory('Widget_Abstract_Contents')->contentEx = 
4.
Typecho_Plugin::factory('Widget_Abstract_Contents')->excerptEx = 
5.
Typecho_Plugin::factory('Widget_Contents_Post_Edit')->write = 
6.
Typecho_Plugin::factory('Widget_Contents_Page_Edit')->write = 

那么只要替换为下面对应数字编号的即可:

1.
Typecho_Plugin::factory('Mirages_Plugin')->content =
2.
Typecho_Plugin::factory('Mirages_Plugin')->excerpt =
3.
Typecho_Plugin::factory('Mirages_Plugin')->contentEx =
4.
Typecho_Plugin::factory('Mirages_Plugin')->excerptEx =
5.
Typecho_Plugin::factory('Mirages_Plugin')->writePost =
6.
Typecho_Plugin::factory('Mirages_Plugin')->writePage =

转自主题作者,留作参考。

Last Modified: October 31, 2018