diff --git a/includes/object-cache.php b/includes/object-cache.php index 65ac4c62..d403d21b 100644 --- a/includes/object-cache.php +++ b/includes/object-cache.php @@ -689,7 +689,7 @@ protected function connect_using_phpredis( $parameters ) { if ( isset( $parameters['password'] ) && version_compare( $version, '4.3.0', '>=' ) ) { $args['password'] = $parameters['password']; } - + if ( version_compare( $version, '5.3.0', '>=' ) && defined( 'WP_REDIS_SSL_CONTEXT' ) && ! empty( WP_REDIS_SSL_CONTEXT ) ) { if ( array_key_exists( 'password', $args ) ) { $args['password'] = null;