@@ -109,7 +109,7 @@ |
||
109 | 109 | /** |
110 | 110 | * Init/load the order object. Called from the constructor. |
111 | 111 | * |
112 | - * @param int|object|WC_Order $order Order to init. |
|
112 | + * @param integer $order Order to init. |
|
113 | 113 | */ |
114 | 114 | protected function init( $order ) { |
115 | 115 | if ( is_numeric( $order ) ) { |
@@ -2276,7 +2276,7 @@ discard block |
||
2276 | 2276 | * |
2277 | 2277 | * @since 2.2 |
2278 | 2278 | * @param string $image_url |
2279 | - * @return int|WP_Error attachment id |
|
2279 | + * @return integer attachment id |
|
2280 | 2280 | */ |
2281 | 2281 | public function upload_product_image( $image_url ) { |
2282 | 2282 | return $this->upload_image_from_url( $image_url ); |
@@ -2388,7 +2388,7 @@ discard block |
||
2388 | 2388 | * Set uploaded image as attachment. |
2389 | 2389 | * |
2390 | 2390 | * @since 2.5.0 |
2391 | - * @param array $upload Upload information from wp_upload_bits |
|
2391 | + * @param integer $upload Upload information from wp_upload_bits |
|
2392 | 2392 | * @param int $id Post ID. Default to 0. |
2393 | 2393 | * @return int Attachment ID |
2394 | 2394 | */ |
@@ -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(); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Get the product object. |
83 | - * @param mixed $the_product |
|
83 | + * @param boolean $the_product |
|
84 | 84 | * @uses WP_Post |
85 | 85 | * @return WP_Post|bool false on failure |
86 | 86 | */ |
@@ -1994,7 +1994,7 @@ |
||
1994 | 1994 | * |
1995 | 1995 | * @since 2.5.0 |
1996 | 1996 | * @param string $image_url |
1997 | - * @return int|WP_Error attachment id |
|
1997 | + * @return integer attachment id |
|
1998 | 1998 | * @throws WC_CLI_Exception |
1999 | 1999 | */ |
2000 | 2000 | private function upload_product_image( $image_url ) { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * Load the persistent cart. |
45 | 45 | * |
46 | 46 | * @param string $user_login |
47 | - * @param WP_User $user |
|
47 | + * @param integer $user |
|
48 | 48 | * @deprecated 2.3 |
49 | 49 | */ |
50 | 50 | function wc_load_persistent_cart( $user_login, $user ) { |
@@ -599,7 +599,7 @@ |
||
599 | 599 | * |
600 | 600 | * @since 2.2 |
601 | 601 | * @param array $args |
602 | - * @return WC_Order_Refund|WP_Error |
|
602 | + * @return string |
|
603 | 603 | */ |
604 | 604 | function wc_create_refund( $args = array() ) { |
605 | 605 | $default_args = array( |