@@ -184,7 +184,7 @@ |
||
184 | 184 | * |
185 | 185 | * @param stdClass $user |
186 | 186 | * @param array $params The request parameters. |
187 | - * @return null|WP_Error |
|
187 | + * @return stdClass |
|
188 | 188 | */ |
189 | 189 | private function check_oauth_signature( $user, $params ) { |
190 | 190 | $http_method = strtoupper( $_SERVER['REQUEST_METHOD'] ); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * |
286 | 286 | * @param WP_Post $post |
287 | 287 | * @param WP_REST_Request $request |
288 | - * @return bool|WP_Error |
|
288 | + * @return boolean |
|
289 | 289 | */ |
290 | 290 | protected function add_post_meta_fields( $post, $request ) { |
291 | 291 | $data = $request->get_json_params(); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * |
341 | 341 | * @param WP_Post $post |
342 | 342 | * @param WP_REST_Request $request |
343 | - * @return bool|WP_Error |
|
343 | + * @return boolean |
|
344 | 344 | */ |
345 | 345 | protected function update_post_meta_fields( $post, $request ) { |
346 | 346 | if ( isset( $request['amount'] ) ) { |
@@ -470,7 +470,6 @@ discard block |
||
470 | 470 | * Prepare links for the request. |
471 | 471 | * |
472 | 472 | * @param object $attribute Attribute object. |
473 | - * @param WP_REST_Request $request Full details about the request. |
|
474 | 473 | * @return array Links for the given attribute. |
475 | 474 | */ |
476 | 475 | protected function prepare_links( $attribute ) { |
@@ -562,7 +561,7 @@ discard block |
||
562 | 561 | * Get attribute name. |
563 | 562 | * |
564 | 563 | * @param WP_REST_Request $request Full details about the request. |
565 | - * @return int|WP_Error |
|
564 | + * @return string |
|
566 | 565 | */ |
567 | 566 | protected function get_taxonomy( $request ) { |
568 | 567 | if ( '' !== $this->attribute ) { |
@@ -380,7 +380,6 @@ |
||
380 | 380 | /** |
381 | 381 | * Prepare a single webhook output for response. |
382 | 382 | * |
383 | - * @param WP_Post $webhook Webhook object. |
|
384 | 383 | * @param WP_REST_Request $request Request object. |
385 | 384 | * @return WP_REST_Response $response Response data. |
386 | 385 | */ |
@@ -628,7 +628,7 @@ |
||
628 | 628 | * |
629 | 629 | * @since 2.6.0 |
630 | 630 | * @param int $customer_id Customer ID. |
631 | - * @return WC_Order|bool Order object if successful or false. |
|
631 | + * @return WC_Order Order object if successful or false. |
|
632 | 632 | */ |
633 | 633 | function wc_get_customer_last_order( $customer_id ) { |
634 | 634 | global $wpdb; |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | * |
286 | 286 | * @param WP_Post $post |
287 | 287 | * @param WP_REST_Request $request |
288 | - * @return bool|WP_Error |
|
288 | + * @return boolean |
|
289 | 289 | */ |
290 | 290 | protected function add_post_meta_fields( $post, $request ) { |
291 | 291 | $data = $request->get_json_params(); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * |
341 | 341 | * @param WP_Post $post |
342 | 342 | * @param WP_REST_Request $request |
343 | - * @return bool|WP_Error |
|
343 | + * @return boolean |
|
344 | 344 | */ |
345 | 345 | protected function update_post_meta_fields( $post, $request ) { |
346 | 346 | if ( isset( $request['amount'] ) ) { |
@@ -209,6 +209,7 @@ discard block |
||
209 | 209 | * Like wc_get_template, but returns the HTML instead of outputting. |
210 | 210 | * @see wc_get_template |
211 | 211 | * @since 2.5.0 |
212 | + * @param string $template_name |
|
212 | 213 | */ |
213 | 214 | function wc_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) { |
214 | 215 | ob_start(); |
@@ -1227,7 +1228,7 @@ discard block |
||
1227 | 1228 | /** |
1228 | 1229 | * Return a list of potential postcodes for wildcard searching. |
1229 | 1230 | * @param string $postcode |
1230 | - * @return array |
|
1231 | + * @return string[] |
|
1231 | 1232 | */ |
1232 | 1233 | function wc_get_wildcard_postcodes( $postcode ) { |
1233 | 1234 | $postcodes = array( '*', strtoupper( $postcode ), strtoupper( $postcode ) . '*' ); |
@@ -1248,6 +1249,7 @@ discard block |
||
1248 | 1249 | * @param array $objects Array of postcode objects from Database |
1249 | 1250 | * @param string $object_compare_key DB column name for the ID. |
1250 | 1251 | * @param string $object_compare_key DB column name for the value. |
1252 | + * @param string $object_id_key |
|
1251 | 1253 | * @return array Array of matching object ID and values. |
1252 | 1254 | */ |
1253 | 1255 | function wc_postcode_location_matcher( $postcode, $objects, $object_id_key, $object_compare_key ) { |
@@ -701,7 +701,6 @@ |
||
701 | 701 | /** |
702 | 702 | * Gets data about an attachment, such as alt text and captions. |
703 | 703 | * @since 2.6.0 |
704 | - * @param int $thumbnail_id |
|
705 | 704 | * @param object|bool $product |
706 | 705 | * @return array |
707 | 706 | */ |
@@ -240,6 +240,7 @@ |
||
240 | 240 | |
241 | 241 | /** |
242 | 242 | * Update DB version to current. |
243 | + * @param string $version |
|
243 | 244 | */ |
244 | 245 | public static function update_db_version( $version = null ) { |
245 | 246 | delete_option( 'woocommerce_db_version' ); |