forked from LiveCarta/LiveCartaWP
LAW-8010
This commit is contained in:
@@ -226,6 +226,8 @@ function get_lawcarta_url(){
|
||||
}
|
||||
$host = implode('.', $hostParts);
|
||||
//Fix for staging env because of it use same domain carta.live for both lawcarta/livecarta
|
||||
|
||||
if (isset($wp_sub_domain)) {
|
||||
if(LAWCARTA_ENVIRONMENT_NAME == 'staging' && $wp_sub_domain == 'staging-live'){
|
||||
$host = str_replace('staging-law', 'staging-live',$host);
|
||||
}
|
||||
@@ -238,6 +240,7 @@ function get_lawcarta_url(){
|
||||
$host = str_replace('app-law', 'app',$host);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$port = isset($urlParts['port']) ? $urlParts['port'] : '';
|
||||
if (defined('LAWCARTA_PORT')) {
|
||||
|
||||
Reference in New Issue
Block a user