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, 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,