From 5bcec37171dfc9bd95f97fdb88963953e9ded588 Mon Sep 17 00:00:00 2001
From: Jon Goldberg <jon@megaphonetech.com>
Date: Tue, 27 Feb 2018 19:59:20 -0500
Subject: [PATCH] CRM-21812 - don't specify installation type post install

Signed-off-by: Kevin Cristiano <kcristiano@tadpole.cc>
---
 civicrm.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/civicrm.php b/civicrm.php
index 6d822d3ecd..1b7a3ed1f1 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';
     }
 
-- 
GitLab