Skip to content

Commit f56e088

Browse files
author
Michiel Verkoijen
committed
Return 3 array variables from shrink() function for cURL error.
1 parent e88a064 commit f56e088

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/class-tiny-compress-curl.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ protected function shrink($input) {
4545
$request = curl_init();
4646
curl_setopt_array($request, $this->shrink_options($input));
4747

48-
$output_url = null;
4948
$response = curl_exec($request);
5049
if ($response === false || $response === null) {
5150
return array(array(
5251
'error' => 'CurlError',
5352
'message' => sprintf("cURL: %s [%d]", curl_error($request), curl_errno($request))
54-
), null
53+
), null, null
5554
);
5655
}
5756

src/class-tiny-wp-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function plugin_version() {
5555
}
5656

5757
public static function plugin_identification() {
58-
return 'Wordpress/' . self::wp_version() . ' PHP/' . PHP_VERSION . ' Tiny/' . self::plugin_version();
58+
return 'WordPress/' . self::wp_version() . ' PHP/' . PHP_VERSION . ' Tiny/' . self::plugin_version();
5959
}
6060

6161
protected static function get_prefixed_name($name) {

0 commit comments

Comments
 (0)