From: Pratik Joshi Date: Tue, 29 Oct 2013 15:05:42 +0000 (+0530) Subject: CRM-13667 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82d5bb058df6bbd80047cd577a7967ee858ab643;p=civicrm-core.git CRM-13667 ---------------------------------------- * CRM-13667: WP Sync Users Error http://issues.civicrm.org/jira/browse/CRM-13667 --- diff --git a/CRM/Core/BAO/CMSUser.php b/CRM/Core/BAO/CMSUser.php index d9d9df6c33..00dd9c2d99 100644 --- a/CRM/Core/BAO/CMSUser.php +++ b/CRM/Core/BAO/CMSUser.php @@ -160,9 +160,7 @@ class CRM_Core_BAO_CMSUser { $contactMatching = 0; global $wpdb; - $wpUserIds = $wpdb->get_col( - $wpdb->prepare("SELECT $wpdb->users.ID FROM $wpdb->users") - ); + $wpUserIds = $wpdb->get_col("SELECT $wpdb->users.ID FROM $wpdb->users"); foreach ($wpUserIds as $wpUserId) { $wpUserData = get_userdata($wpUserId);