Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Redis User Session Storage
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
Redis User Session Storage
Commits
2bb3ec78
Commit
2bb3ec78
authored
10 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Don't use a closure since WP 4.0 still works on older PHP versions
parent
ecac6b63
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wp-redis-user-session-storage.php
+6
-2
6 additions, 2 deletions
wp-redis-user-session-storage.php
with
6 additions
and
2 deletions
wp-redis-user-session-storage.php
+
6
−
2
View file @
2bb3ec78
...
...
@@ -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_to
ken_manager'
,
function
(
$manager
)
{
function
wp_redis_user_
session_
s
to
rage
(
)
{
return
'WP_Redis_User_Session_Storage'
;
}
);
}
add_filter
(
'session_token_manager'
,
'wp_redis_user_session_storage'
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment