Commit 2173167c authored by Erick Hitter's avatar Erick Hitter

Fix various fatal errors introduced in 03427f58

parent 03427f58
......@@ -179,10 +179,10 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
$sessions = wp_list_pluck( $sessions, 'expiration' );
}
$key = $this->key();
$key = $this->get_key();
if ( $sessions ) {
$this->redis->set( $key, $sessions ) );
$this->redis->set( $key, $sessions );
} elseif ( $this->redis->exists( $key ) ) {
$this->redis->del( $key );
}
......@@ -233,6 +233,7 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
/**
*
*/
add_filter( 'session_token_manager', function ( $manager ) {
add_filter( 'session_token_manager', function( $manager ) {
return 'WP_Redis_User_Session_Storage';
} );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment