Skip to content

Commit fd132ed

Browse files
committed
Apply suggestion from PR
1 parent e90b6ca commit fd132ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Admin/SiteHealth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function is_site_has_redis() {
236236
*/
237237
$redis_server = [
238238
'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,
239+
'port' => isset( $_SERVER['CACHE_PORT'] ) ? (int) $_SERVER['CACHE_PORT'] : 6379,
240240
'auth' => isset( $_SERVER['CACHE_PASSWORD'] ) ? sanitize_text_field( $_SERVER['CACHE_PASSWORD'] ) : null,
241241
'database' => isset( $_SERVER['CACHE_DB'] ) ? $_SERVER['CACHE_DB'] : 0, // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
242242
'timeout' => 1, // Time in seconds.

0 commit comments

Comments
 (0)