@@ -201,7 +201,7 @@ |
||
| 201 | 201 | /** |
| 202 | 202 | * Parse file path and see if its remote or local. |
| 203 | 203 | * @param string $file_path |
| 204 | - * @return array |
|
| 204 | + * @return string |
|
| 205 | 205 | */ |
| 206 | 206 | public static function parse_file_path( $file_path ) { |
| 207 | 207 | $wp_uploads = wp_upload_dir(); |
@@ -1058,7 +1058,7 @@ |
||
| 1058 | 1058 | * Set the quantity for an item in the cart. |
| 1059 | 1059 | * |
| 1060 | 1060 | * @param string $cart_item_key contains the id of the cart item |
| 1061 | - * @param string $quantity contains the quantity of the item |
|
| 1061 | + * @param integer $quantity contains the quantity of the item |
|
| 1062 | 1062 | * @param bool $refresh_totals whether or not to calculate totals after setting the new qty |
| 1063 | 1063 | * |
| 1064 | 1064 | * @return bool |
@@ -361,7 +361,7 @@ |
||
| 361 | 361 | * Check if the home URL is https. If it is, we don't need to do things such as 'force ssl'. |
| 362 | 362 | * |
| 363 | 363 | * @since 2.4.13 |
| 364 | - * @return bool |
|
| 364 | + * @return string |
|
| 365 | 365 | */ |
| 366 | 366 | function wc_site_is_https() { |
| 367 | 367 | return strstr( get_option( 'home' ), 'https:' ); |
@@ -2270,7 +2270,7 @@ discard block |
||
| 2270 | 2270 | * |
| 2271 | 2271 | * @since 2.2 |
| 2272 | 2272 | * @param string $image_url |
| 2273 | - * @return int|WP_Error attachment id |
|
| 2273 | + * @return integer attachment id |
|
| 2274 | 2274 | */ |
| 2275 | 2275 | public function upload_product_image( $image_url ) { |
| 2276 | 2276 | return $this->upload_image_from_url( $image_url, 'product_image' ); |
@@ -2281,7 +2281,7 @@ discard block |
||
| 2281 | 2281 | * |
| 2282 | 2282 | * @since 2.5.0 |
| 2283 | 2283 | * @param string $image_url |
| 2284 | - * @return int|WP_Error attachment id |
|
| 2284 | + * @return integer attachment id |
|
| 2285 | 2285 | */ |
| 2286 | 2286 | public function upload_product_category_image( $image_url ) { |
| 2287 | 2287 | return $this->upload_image_from_url( $image_url, 'product_category_image' ); |
@@ -2382,7 +2382,7 @@ discard block |
||
| 2382 | 2382 | * Set uploaded image as attachment. |
| 2383 | 2383 | * |
| 2384 | 2384 | * @since 2.5.0 |
| 2385 | - * @param array $upload Upload information from wp_upload_bits |
|
| 2385 | + * @param integer $upload Upload information from wp_upload_bits |
|
| 2386 | 2386 | * @param int $id Post ID. Default to 0. |
| 2387 | 2387 | * @return int Attachment ID |
| 2388 | 2388 | */ |