From d32a2b16db33f809b422e9bc361069394c493670 Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Mon, 13 Jan 2020 09:14:35 -0500 Subject: [PATCH] Update civicrm.settings.php.template to default to CLEANURL for WP Signed-off-by: Kevin Cristiano --- templates/CRM/common/civicrm.settings.php.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template index 4d2683f300..65bbd8f920 100644 --- a/templates/CRM/common/civicrm.settings.php.template +++ b/templates/CRM/common/civicrm.settings.php.template @@ -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); } -- 2.25.1