PluginProbe
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN / 1.4.2
xSpeed Cache: AI-Powered Performance Hub with MCP, Caching & CDN v1.4.2
1.4.2 1.4.1 1.4.0 1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 All 36 releases
← All changes | includes/class-settings-manager.php +11 -1 1.4.0 → 1.4.2 View file →
@@ -172,9 +172,19 @@
172 172 * @param mixed $actual Value of the gating constant, or null.
173 173 * @param string $on Gating constant name.
174 174 */
175 175 $actual = apply_filters( 'xspeed_constant_gate_value', $actual, $on );
176 - if ( $actual !== ( $gate['is'] ?? null ) ) {
176 + $want = $gate['is'] ?? null;
177 + /*
178 + * `case_insensitive` is for gates on another plugin's
179 + * convention that is read that way at its source: Redis
180 + * Object Cache matches WP_REDIS_SCHEME with strcasecmp(), so
181 + * `UNIX` is a socket there and has to be one here. (#566)
182 + */
183 + $match = ! empty( $gate['case_insensitive'] ) && is_string( $actual ) && is_string( $want )
184 + ? 0 === strcasecmp( $actual, $want )
185 + : $actual === $want;
186 + if ( ! $match ) {
177 187 continue;
178 188 }
179 189 }
180 190 return $name;