Skip to content
Snippets Groups Projects
Commit 2173167c authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix various fatal errors introduced in 03427f58

parent 03427f58
No related branches found
No related tags found
No related merge requests found
......@@ -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';
} );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment