修复:过时的站点主页目录获取方式

This commit is contained in:
sunxiyuan 2021-03-07 12:15:58 +08:00
parent f0855f7c89
commit 18247c16f8

View file

@ -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'];