File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 3
3
* Plugin Name: 10up Experience
4
4
* Plugin URI: https://github.com/10up/10up-experience
5
5
* Description: The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
6
- * Version: 1.13.0
6
+ * Version: 1.13.1
7
7
* Author: 10up
8
8
* Author URI: https://10up.com
9
9
* License: GPLv2 or later
19
19
20
20
use YahnisElsts \PluginUpdateChecker \v5 \PucFactory ;
21
21
22
- define ( 'TENUP_EXPERIENCE_VERSION ' , '1.13.0 ' );
22
+ define ( 'TENUP_EXPERIENCE_VERSION ' , '1.13.1 ' );
23
23
define ( 'TENUP_EXPERIENCE_DIR ' , __DIR__ );
24
24
define ( 'TENUP_EXPERIENCE_FILE ' , __FILE__ );
25
25
Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file, per [ the Keep a Changelog standard] ( http://keepachangelog.com/ ) .
4
4
5
+ ## [ 1.13.1] - 2024-12-12
6
+ * Fix SSO bug with @10up .com emails
7
+
5
8
## [ 1.13.0] - 2024-12-09
6
9
7
10
* Turn on Fueled SSO by default
Original file line number Diff line number Diff line change @@ -229,11 +229,21 @@ public function process_client_login() {
229
229
$ user_id = false ;
230
230
$ user = get_user_by ( 'email ' , $ email );
231
231
232
+ if ( ! $ user ) {
233
+ $ short_email = str_replace ( '@get10up.com ' , '@10up.com ' , $ email );
234
+ $ user = get_user_by ( 'email ' , $ short_email );
235
+ }
236
+
232
237
if ( ! $ user && preg_match ( '#@fueled\.com$#i ' , $ email ) ) {
233
238
// Check if fueled person had a 10up email
234
239
$ old_10up_email = str_replace ( '@fueled.com ' , '@get10up.com ' , $ email );
235
240
$ tenup_user = get_user_by ( 'email ' , $ old_10up_email );
236
241
242
+ if ( ! $ tenup_user ) {
243
+ $ old_10up_email = str_replace ( '@fueled.com ' , '@10up.com ' , $ email );
244
+ $ tenup_user = get_user_by ( 'email ' , $ old_10up_email );
245
+ }
246
+
237
247
if ( $ tenup_user ) {
238
248
// Turn off email change notification
239
249
add_filter ( 'send_email_change_email ' , '__return_false ' );
You can’t perform that action at this time.
0 commit comments