diff --git a/civicrm.php b/civicrm.php index 50f38341dcf3408f1b677fda5749c43d3cc8fe5f..7dc66ad96fafabf1ce93205e728292f422ff1fc4 100644 --- a/civicrm.php +++ b/civicrm.php @@ -308,7 +308,9 @@ class CiviCRM_For_WordPress { if ( $this->civicrm_in_wordpress() ) { // this is required for AJAX calls in WordPress admin $_GET['noheader'] = TRUE; - } else { + } + + if ( !CIVICRM_INSTALLED && !$this->civicrm_in_wordpress() ) { $_GET['civicrm_install_type'] = 'wordpress'; }