@@ -113,8 +113,6 @@ |
||
113 | 113 | * Catchall method if field's 'display_cb' is NOT defined, or field type does |
114 | 114 | * not have a corresponding display method |
115 | 115 | * @since 2.2.2 |
116 | - * @param string $method Non-existent method name |
|
117 | - * @param array $arguments All arguments passed to the method |
|
118 | 116 | */ |
119 | 117 | public function display() { |
120 | 118 | // If repeatable |
@@ -197,6 +197,7 @@ discard block |
||
197 | 197 | * @param string|array $object_types Object(s) the field is being registered |
198 | 198 | * to, "post"|"term"|"comment" etc. |
199 | 199 | * @param string $object_types Canonical object type for callbacks. |
200 | + * @param string $object_type |
|
200 | 201 | * |
201 | 202 | * @return void |
202 | 203 | */ |
@@ -391,7 +392,7 @@ discard block |
||
391 | 392 | * |
392 | 393 | * @since 2.2.4 |
393 | 394 | * |
394 | - * @param mixed $value The value of the field |
|
395 | + * @param mixed $values The value of the field |
|
395 | 396 | * @param object $object The object from the response |
396 | 397 | * @param string $field_name Name of field |
397 | 398 | * @param WP_REST_Request $request Current request |
@@ -410,7 +411,7 @@ discard block |
||
410 | 411 | * |
411 | 412 | * @since 2.2.4 |
412 | 413 | * |
413 | - * @param mixed $value The value of the field |
|
414 | + * @param mixed $values The value of the field |
|
414 | 415 | * @param object $object The object from the response |
415 | 416 | * @param string $field_name Name of field |
416 | 417 | * @param WP_REST_Request $request Current request |
@@ -429,7 +430,7 @@ discard block |
||
429 | 430 | * |
430 | 431 | * @since 2.2.4 |
431 | 432 | * |
432 | - * @param mixed $value The value of the field |
|
433 | + * @param mixed $values The value of the field |
|
433 | 434 | * @param object $object The object from the response |
434 | 435 | * @param string $field_name Name of field |
435 | 436 | * @param WP_REST_Request $request Current request |
@@ -448,7 +449,7 @@ discard block |
||
448 | 449 | * |
449 | 450 | * @since 2.2.4 |
450 | 451 | * |
451 | - * @param mixed $value The value of the field |
|
452 | + * @param mixed $values The value of the field |
|
452 | 453 | * @param object $object The object from the response |
453 | 454 | * @param string $field_name Name of field |
454 | 455 | * @param WP_REST_Request $request Current request |
@@ -467,7 +468,7 @@ discard block |
||
467 | 468 | * |
468 | 469 | * @since 2.2.4 |
469 | 470 | * |
470 | - * @param mixed $value The value of the field |
|
471 | + * @param mixed $values The value of the field |
|
471 | 472 | * @param object $object The object from the response |
472 | 473 | * @param WP_REST_Request $request Current request |
473 | 474 | * @param string $object_type The request object type |
@@ -665,7 +666,7 @@ discard block |
||
665 | 666 | * Retrieve all CMB2_REST instances from the registry. |
666 | 667 | * |
667 | 668 | * @since 2.2.4 |
668 | - * @return CMB2[] Array of all registered CMB2_REST instances. |
|
669 | + * @return CMB2_REST[] Array of all registered CMB2_REST instances. |
|
669 | 670 | */ |
670 | 671 | public static function get_all() { |
671 | 672 | return self::$boxes; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * Get object property and optionally set a fallback |
160 | 160 | * @since 2.0.0 |
161 | 161 | * @param string $property Metabox config property to retrieve |
162 | - * @param mixed $fallback Fallback value to set if no value found |
|
162 | + * @param boolean|null $fallback Fallback value to set if no value found |
|
163 | 163 | * @return mixed Metabox config property value or false |
164 | 164 | */ |
165 | 165 | public function prop( $property, $fallback = null ) { |
@@ -464,7 +464,6 @@ discard block |
||
464 | 464 | * Allows overloading the object with methods... Whooaaa oooh it's magic, y'knoooow. |
465 | 465 | * @since 1.0.0 |
466 | 466 | * @param string $method Non-existent method. |
467 | - * @param array $arguments All arguments passed to the method |
|
468 | 467 | */ |
469 | 468 | public function __call( $method, $args ) { |
470 | 469 | $object_class = strtolower( get_class( $this ) ); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @since 2.2.3 |
199 | 199 | * |
200 | 200 | * @param mixed $cb Callable function/method. |
201 | - * @return mixed Results of output buffer after calling function/method. |
|
201 | + * @return string Results of output buffer after calling function/method. |
|
202 | 202 | */ |
203 | 203 | public function get_cb_results( $cb ) { |
204 | 204 | $args = func_get_args(); |
@@ -214,7 +214,6 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @since 2.2.3 |
216 | 216 | * |
217 | - * @param mixed $item WordPress representation of the item. |
|
218 | 217 | * @param WP_REST_Request $request Request object. |
219 | 218 | * @return WP_REST_Response $response |
220 | 219 | */ |