Merge pull request #4921 from gregory-p/wordpress

Wordpress
This commit is contained in:
gregory-p
2021-04-14 09:25:38 +03:00
committed by GitHub
3 changed files with 12 additions and 4 deletions

View File

@@ -222,6 +222,10 @@ function get_lawcarta_url(){
if(LAWCARTA_ENVIRONMENT_NAME == 'prod' && $wp_sub_domain == 'prod-live'){
$host = str_replace('prod-law', 'prod-live',$host);
}
//Temporary fix for new prod env because of it use same domain carta.live for both lawcarta/livecarta
if(LAWCARTA_ENVIRONMENT_NAME == 'prod' && $wp_sub_domain == ''){
$host = str_replace('app-law', 'app',$host);
}
}
$port = isset($urlParts['port']) ? $urlParts['port'] : '';