From b630da6653a73181b749735c659b6131162f283c Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Fri, 8 Jul 2022 09:50:53 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Faisal Alvi --- includes/ConvertToBlocks/MigrationAgent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ConvertToBlocks/MigrationAgent.php b/includes/ConvertToBlocks/MigrationAgent.php index a5c319e..7aed24f 100644 --- a/includes/ConvertToBlocks/MigrationAgent.php +++ b/includes/ConvertToBlocks/MigrationAgent.php @@ -205,7 +205,7 @@ public function get_posts_to_update( $opts = [] ) { */ public function has_ctb_client_param() { // phpcs:disable - $ctb_client = sanitize_text_field( isset( $_GET['ctb_client'] ) ? $_GET['ctb_client'] : '' ) ; + $ctb_client = sanitize_text_field( $_GET['ctb_client'] ?? '' ); // phpcs:enable $ctb_client = intval( $ctb_client );