Update civicrm.settings.php.template to default to CLEANURL for WP
authorKevin Cristiano <kcristiano@kcristiano.com>
Mon, 13 Jan 2020 14:14:35 +0000 (09:14 -0500)
committerKevin Cristiano <kcristiano@kcristiano.com>
Mon, 13 Jan 2020 14:14:35 +0000 (09:14 -0500)
Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com>
templates/CRM/common/civicrm.settings.php.template

index 4d2683f30074461794aead371da304459b02f919..65bbd8f920d3b400b2c029f45d34de23e8bbf83c 100644 (file)
@@ -505,6 +505,9 @@ if (!defined('CIVICRM_CLEANURL')) {
   elseif ( function_exists('config_get') && config_get('system.core', 'clean_url') != 0) {
     define('CIVICRM_CLEANURL', 1 );
   }
+  elseif( function_exists('get_option') && get_option('permalink_structure') != '' ) {
+    define('CIVICRM_CLEANURL', 1 );
+  }
   else {
     define('CIVICRM_CLEANURL', 0);
   }