From: David Hayes Date: Thu, 8 Jul 2021 01:06:55 +0000 (-0700) Subject: add password to wp_signon X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4fc945ae7693cfe1b9abe1188180ee3e0758b6f5;p=civicrm-core.git add password to wp_signon --- diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index d69c0fcc21..5348ae6cf1 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -922,7 +922,10 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { if (!current_user_can('create_users')) { $creds = []; $creds['user_login'] = $params['cms_name']; + $creds['user_password'] = $user_data['user_pass']; $creds['remember'] = TRUE; + + // @todo handle a wp_signon failure wp_signon($creds, FALSE); }