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
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
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
Compare revisions
5806529f937657d05ef353e46c2c77c70cccebdd to 6ab003015986f61e979dbd7b2c852dd013b113b0
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
wp-plugins/wp-redis-user-session-storage
Select target project
No results found
6ab003015986f61e979dbd7b2c852dd013b113b0
Select Git revision
Branches
master
Tags
v0.1
v0.2
3 results
Swap
Target
wp-plugins/wp-redis-user-session-storage
Select target project
wp-plugins/wp-redis-user-session-storage
1 result
5806529f937657d05ef353e46c2c77c70cccebdd
Select Git revision
Branches
master
Tags
v0.1
v0.2
3 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Fix translation support
· e14956ce
Erick Hitter
authored
2 years ago
e14956ce
PHPCS
· 9491959c
Erick Hitter
authored
2 years ago
9491959c
Merge branch 'fix/i18n' into 'master'
· 6ab00301
Erick Hitter
authored
2 years ago
Fix translation support See merge request
!13
6ab00301
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-4
1 addition, 4 deletions
.gitlab-ci.yml
wp-redis-user-session-storage.php
+20
-1
20 additions, 1 deletion
wp-redis-user-session-storage.php
with
21 additions
and
5 deletions
.gitlab-ci.yml
View file @
6ab00301
include
:
-
remote
:
https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/variables.yml
-
remote
:
https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/cache.yml
-
remote
:
https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/before-script-redis.yml
-
remote
:
https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/matrix-redis.yml
-
remote
:
https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/default-redis.yml
This diff is collapsed.
Click to expand it.
wp-redis-user-session-storage.php
View file @
6ab00301
...
...
@@ -6,6 +6,8 @@
* Version: 0.2
* Author: Erick Hitter
* Author URI: https://ethitter.com/
* Text Domain: wp-redis-user-session-storage
* Domain Path: /languages/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -27,7 +29,6 @@
namespace
Redis_User_Session_Storage
;
use
Redis
;
use
WP_Redis_User_Session_Storage
;
use
WP_Session_Tokens
;
/**
...
...
@@ -58,6 +59,11 @@ function load() {
new
Activation_Deactivation_Hooks
(
__FILE__
);
add_action
(
'plugins_loaded'
,
__NAMESPACE__
.
'\action_plugins_loaded'
);
// Hooked at 9 in case old plugin is also active.
add_filter
(
'session_token_manager'
,
...
...
@@ -67,6 +73,19 @@ function load() {
}
load
();
/**
* Perform various actions after plugin loads.
*
* @return void
*/
function
action_plugins_loaded
()
{
load_plugin_textdomain
(
'wp-redis-user-session-storage'
,
false
,
dirname
(
plugin_basename
(
__FILE__
)
)
.
'/languages/'
);
}
/**
* Override Core's default usermeta-based token storage.
*
...
...
This diff is collapsed.
Click to expand it.