We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90b6ca commit fd132edCopy full SHA for fd132ed
src/Admin/SiteHealth.php
@@ -236,7 +236,7 @@ public function is_site_has_redis() {
236
*/
237
$redis_server = [
238
'host' => isset( $_SERVER['CACHE_HOST'] ) ? sanitize_text_field( $_SERVER['CACHE_HOST'] ) : '127.0.0.1',
239
- 'port' => isset( $_SERVER['CACHE_PORT'] ) ? intval( $_SERVER['CACHE_PORT'] ) : 6379,
+ 'port' => isset( $_SERVER['CACHE_PORT'] ) ? (int) $_SERVER['CACHE_PORT'] : 6379,
240
'auth' => isset( $_SERVER['CACHE_PASSWORD'] ) ? sanitize_text_field( $_SERVER['CACHE_PASSWORD'] ) : null,
241
'database' => isset( $_SERVER['CACHE_DB'] ) ? $_SERVER['CACHE_DB'] : 0, // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
242
'timeout' => 1, // Time in seconds.
0 commit comments