diff --git a/civicrm.php b/civicrm.php index 19311202bf828e26f1f2b0db85845c18c9cf065f..e08db8faf3d52c987de64656328b142ab7f75065 100644 --- a/civicrm.php +++ b/civicrm.php @@ -309,7 +309,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'; }