mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
特性:修改“翻译校准”按钮为“参与翻译”,同时更改翻译后端为 litepress.cn 并全局生效
This commit is contained in:
parent
2c9beee820
commit
bcf2ae35bd
1 changed files with 6 additions and 6 deletions
|
@ -36,13 +36,13 @@ if (!class_exists('WP_CHINA_YES')) {
|
|||
/**
|
||||
* 插件列表页中所有插件增加“翻译校准”链接
|
||||
*/
|
||||
if (get_option('wpapi') == 1) {
|
||||
add_filter(sprintf('%splugin_action_links', is_multisite() ? 'network_admin_' : ''), function ($links, $plugin = '') {
|
||||
$links[] = '<a target="_blank" href="https://translate.wp-china.org/projects/plugins/' . substr($plugin, 0, strpos($plugin, '/')) . '/zh-cn/default">翻译校准</a>';
|
||||
// if (get_option('wpapi') == 1) {
|
||||
add_filter(sprintf('%splugin_action_links', is_multisite() ? 'network_admin_' : ''), function ($links, $plugin = '') {
|
||||
$links[] = '<a target="_blank" href="https://litepress.cn/translate/projects/plugins/' . substr($plugin, 0, strpos($plugin, '/')) . '/">参与翻译</a>';
|
||||
|
||||
return $links;
|
||||
}, 10, 2);
|
||||
}
|
||||
return $links;
|
||||
}, 10, 2);
|
||||
//}
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue