We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c5610e commit 3b64cb3Copy full SHA for 3b64cb3
CHANGELOG.md
@@ -5,6 +5,7 @@
5
- Require WordPress 4.6 or newer
6
- Load text-domain on-demand
7
- Call `redis_object_cache_error` action before `wp_die()`
8
+- Don't try to define `WP_REDIS_PLUGIN_PATH` twice
9
10
## 2.4.4
11
redis-cache.php
@@ -20,10 +20,13 @@
20
defined( 'ABSPATH' ) || exit;
21
22
define( 'WP_REDIS_FILE', __FILE__ );
23
-define( 'WP_REDIS_PLUGIN_PATH', __DIR__ );
24
define( 'WP_REDIS_BASENAME', plugin_basename( WP_REDIS_FILE ) );
25
define( 'WP_REDIS_PLUGIN_DIR', plugin_dir_url( WP_REDIS_FILE ) );
26
+if ( ! defined( 'WP_REDIS_PLUGIN_PATH' ) ) {
27
+ define( 'WP_REDIS_PLUGIN_PATH', __DIR__ );
28
+}
29
+
30
$meta = get_file_data( WP_REDIS_FILE, [ 'Version' => 'Version' ] );
31
32
define( 'WP_REDIS_VERSION', $meta['Version'] );
0 commit comments