refactor:去除Composer,移动Loco Translate到libs目录

This commit is contained in:
sunxiyuan 2020-07-19 16:14:02 +08:00
parent 36d23f3780
commit e39bb8fb8f
287 changed files with 6 additions and 634 deletions

View file

@ -10,18 +10,11 @@
*/
if (is_admin()) {
/**
* 使用Composer作PHP文件自动加载
*/
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}
/**
* WP-China-Yes的翻译校准基于Loco Translate插件开发这里通过引入入口文件的方式激活该插件的二次开发版
*/
if ( file_exists( __DIR__ . '/vendor/loco-translate/loco.php' ) ) {
require __DIR__ . '/vendor/loco-translate/loco.php';
if ( file_exists(__DIR__ . '/libs/loco-translate/loco.php') ) {
require __DIR__ . '/libs/loco-translate/loco.php';
}
/**