diff --git a/civicrm.php b/civicrm.php index dcf3e8deaa17319d3c9af8b881d146f86fabacde..358a33855f9446e13ac49ff01db7e12ffac3594b 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'; }