Commit 2bb3ec78 authored by Erick Hitter's avatar Erick Hitter

Don't use a closure since WP 4.0 still works on older PHP versions

parent ecac6b63
......@@ -256,7 +256,11 @@ class WP_Redis_User_Session_Storage extends WP_Session_Tokens {
/**
* Override Core's default usermeta-based token storage
*
* @filter session_token_manager
* @return string
*/
add_filter( 'session_token_manager', function( $manager ) {
function wp_redis_user_session_storage() {
return 'WP_Redis_User_Session_Storage';
} );
}
add_filter( 'session_token_manager', '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