mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +08:00
refactor:去除Composer,移动Loco Translate到libs目录
This commit is contained in:
parent
36d23f3780
commit
e39bb8fb8f
287 changed files with 6 additions and 634 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue