文件操作 - Compatibility.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/common/src/Tribe/Editor/Compatibility.php
编辑文件内容
<?php namespace Tribe\Editor; use Tribe\Editor\Compatibility\Classic_Editor; use Tribe\Editor\Compatibility\Divi; use TEC\Common\Contracts\Service_Provider; /** * Editor Compatibility with other plugins and themes. * * @since 4.14.13 */ class Compatibility extends Service_Provider { public function register() { $this->container->singleton( self::class, $this ); $this->container->singleton( 'editor.compatibility', $this ); // Conditionally load compatibility for the Classic Editor plugin. if ( Classic_Editor::is_classic_plugin_active() ) { $this->container->singleton( 'editor.compatibility.classic-editor', Classic_Editor::class ); tribe( 'editor.compatibility.classic-editor' )->init(); } // Conditionally load compatibility for Divi themes. if ( Divi::is_divi_active() ) { $this->container->singleton( 'editor.compatibility.divi', Divi::class ); tribe( 'editor.compatibility.divi' )->init(); } } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件