mirror of
https://github.com/WenPai-org/wp-chinese-converter.git
synced 2025-08-05 02:09:02 +08:00
修复:过时的站点主页目录获取方式
This commit is contained in:
parent
f0855f7c89
commit
18247c16f8
1 changed files with 1 additions and 2 deletions
|
@ -630,8 +630,7 @@ function wpcs_link_conversion($link, $variant = null) {
|
|||
|
||||
static $wpcs_wp_home;
|
||||
if( empty($wpcs_wp_home) ) {
|
||||
$home = parse_url(home_url());
|
||||
$wpcs_wp_home = trailingslashit($home["path"]);
|
||||
$wpcs_wp_home = home_url();
|
||||
}
|
||||
|
||||
if( $variant === null ) $variant = $GLOBALS['wpcs_target_lang'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue