CRM-15629: Add wpLoadPhp to core settings file
authorKevin Cristiano <kcristiano@tadpole.cc>
Sat, 9 May 2015 02:22:58 +0000 (22:22 -0400)
committerkurund <kurund@civicrm.org>
Thu, 14 May 2015 06:40:50 +0000 (12:10 +0530)
----------------------------------------
* CRM-15629: Paypal IPN not working on Wordpress the first time
  https://issues.civicrm.org/jira/browse/CRM-15629

settings/Core.setting.php

index e6312c0acf9de2b20a6e756b09fe8b4808176786..6e347250be831047ce5f960ccb262cd601dc1d33 100644 (file)
@@ -734,4 +734,20 @@ return array(
     'description' => 'When enabled, "empowered by CiviCRM" is displayed at the bottom of public forms.',
     'help_text' => NULL,
   ),
+  'wpLoadPhp' => array(
+    'group_name' => 'CiviCRM Preferences',
+    'group' => 'core',
+    'name' => 'wpLoadPhp',
+    'type' => 'String',
+    'html_type' => 'text',
+    'quick_form_type' => 'Element',
+    'prefetch' => 1,  // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
+    'default' => '',
+    'add' => '4.6',
+    'title' => 'WordPress Path to wp-load.php',
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => 'CiviCRM will use this setting as path to bootstrap WP.',
+    'help_text' => NULL,
+  ),
 );