From bf75888141f13e71bec4a13eeb70fe8aee2c0986 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 30 Aug 2023 15:19:25 +0200 Subject: [PATCH 1/2] Update to wp-cli-tests v4 (which requires WPCS v3) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 528c638..3bfcaf3 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "require-dev": { "wp-cli/entity-command": "^1.3 || ^2", - "wp-cli/wp-cli-tests": "^3.1" + "wp-cli/wp-cli-tests": "^4" }, "config": { "process-timeout": 7200, From a01efb89378b7f45b2d33ddd39ea5cd43098404f Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 30 Aug 2023 08:22:36 -0700 Subject: [PATCH 2/2] Rename variable to avoid PHPCS issue --- src/Fetch_Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fetch_Command.php b/src/Fetch_Command.php index 9b254c9..b00563c 100644 --- a/src/Fetch_Command.php +++ b/src/Fetch_Command.php @@ -127,7 +127,7 @@ function ( $args ) use ( $response_size_limit ) { remove_all_filters( 'oembed_dataparse' ); // Save a few cycles. add_filter( 'oembed_dataparse', - function ( $return, $data, $url ) { + function ( $ret, $data, $url ) { return $data; }, PHP_INT_MAX,