GC_Customize_Manager::is_cross_domain()
最后更新于:2021-11-27 01:03:10
GC_Customize_Manager::is_cross_domain()Determines whether the admin and the frontend are on different domains.
响应
(bool) Whether cross-domain.
源文件
文件: gc-includes/class-gc-customize-manager.php
public function is_cross_domain() {
$admin_origin = gc_parse_url( admin_url() );
$home_origin = gc_parse_url( home_url() );
$cross_domain = ( strtolower( $admin_origin['host'] ) !== strtolower( $home_origin['host'] ) );
return $cross_domain;
}