Skip to content

Commit

Permalink
Merge pull request #1693 from xwp/release/v4.1.1
Browse files Browse the repository at this point in the history
Release `4.1.1`
  • Loading branch information
bartoszgadomski authored Feb 3, 2025
2 parents b4acdc4 + c030a0f commit ec9bb1a
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 96 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Stream Changelog

## 4.1.1 - February 3, 2025

### Bug fixes

- Fix Two Factor connector issue (in [#1692](https://github.com/xwp/stream/pull/1692))

## 4.1.0 - January 20, 2025

### New features & Enhancements
Expand Down
2 changes: 1 addition & 1 deletion classes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Plugin {
*
* @const string
*/
const VERSION = '4.1.0';
const VERSION = '4.1.1';

/**
* WP-CLI command
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"wpackagist-plugin/classic-editor": "1.6.4",
"wpackagist-plugin/easy-digital-downloads": "3.3.1",
"wpackagist-plugin/jetpack": "13.6",
"wpackagist-plugin/two-factor": "0.9.1",
"wpackagist-plugin/two-factor": "0.11.0",
"wpackagist-plugin/user-switching": "1.8.0",
"wpackagist-plugin/wordpress-seo": "23.6",
"wpackagist-plugin/wp-crontrol": "1.17.0",
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions connectors/class-connector-two-factor.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,20 +291,25 @@ public function callback_added_user_meta( $meta_id, $user_id, $meta_key, $meta_v
* Callback to watch for 2FA authenticated actions.
*
* @param \WP_User $user Authenticated user.
* @param object $provider The 2FA Provider used.
* @param ?object $provider The 2FA Provider used, null if unknown (this might happen if using older Two Factor plugin version).
*/
public function callback_two_factor_user_authenticated( $user, $provider ) {
public function callback_two_factor_user_authenticated( $user, $provider = null ) {

/* Translators: %s is the Two Factor provider. */
$message = __(
'Authenticated via %s',
'stream'
);

// Get the provider key.
$provider_key = null === $provider
? __( 'unknown Two Factor method', 'stream' )
: $provider->get_key();

$this->log(
$message,
array(
'provider' => $provider->get_key(),
'provider' => $provider_key,
),
$user->ID,
'auth',
Expand Down
Loading

0 comments on commit ec9bb1a

Please sign in to comment.