From c5f77355c397ac52004964b5f04e1142acc0985f Mon Sep 17 00:00:00 2001 From: Christian Wach Date: Tue, 10 Nov 2015 10:29:21 +0000 Subject: [PATCH] codestyling update --- CRM/Utils/System/WordPress.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 885ea46934..4c01b45e47 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -339,7 +339,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { global $wp, $wp_rewrite, $wp_the_query, $wp_query, $wpdb, $current_site, $current_blog, $current_user; if (!defined('WP_USE_THEMES')) { - define('WP_USE_THEMES', false); + define('WP_USE_THEMES', FALSE); } $cmsRootPath = $this->cmsRootPath(); @@ -380,7 +380,8 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { if ($uid) { if ($uid instanceof WP_User) { $account = wp_set_current_user($uid->ID); - } else { + } + else { $account = wp_set_current_user($uid); } if ($account && $account->data->ID) { -- 2.25.1