Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
  • v0.1
  • v0.2
3 results

Target

Select target project
  • wp-plugins/wp-redis-user-session-storage
1 result
Select Git revision
  • master
  • v0.1
  • v0.2
3 results
Show changes
Commits on Source (3)
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
......@@ -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.
*
......