@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | * |
597 | 597 | * @param string $url The URL to request. |
598 | 598 | * @param array $args Arguments to be posted with the request. |
599 | - * @return object An object containing details about this request. |
|
599 | + * @return string An object containing details about this request. |
|
600 | 600 | */ |
601 | 601 | private function _request( $url, $args = array() ) { |
602 | 602 | // Prefix the full pod URL if necessary. |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | * @see WP_Error::__construct() |
666 | 666 | * @since 1.6.0 |
667 | 667 | * |
668 | - * @param string|int $code Error code. |
|
668 | + * @param string $code Error code. |
|
669 | 669 | * @param string $message Error message. |
670 | 670 | * @param mixed $data Error data. |
671 | 671 | */ |
@@ -737,7 +737,7 @@ discard block |
||
737 | 737 | /** |
738 | 738 | * Validate checkboxes, make them either true or false. |
739 | 739 | * |
740 | - * @param string|array $checkboxes Checkboxes to validate. |
|
740 | + * @param string[] $checkboxes Checkboxes to validate. |
|
741 | 741 | * @param array $options Options values themselves. |
742 | 742 | * @return array The validated options. |
743 | 743 | */ |
@@ -751,7 +751,7 @@ discard block |
||
751 | 751 | /** |
752 | 752 | * Validate single-select fields and make sure their selected value are valid. |
753 | 753 | * |
754 | - * @param string|array $selects Name(s) of the select fields. |
|
754 | + * @param string $selects Name(s) of the select fields. |
|
755 | 755 | * @param array $options Options values themselves. |
756 | 756 | * @return array The validated options. |
757 | 757 | */ |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | /** |
768 | 768 | * Validate multi-select fields and make sure their selected values are valid. |
769 | 769 | * |
770 | - * @param string|array $selects Name(s) of the select fields. |
|
770 | + * @param string $selects Name(s) of the select fields. |
|
771 | 771 | * @param array $options Options values themselves. |
772 | 772 | * @return array The validated options. |
773 | 773 | */ |
@@ -821,7 +821,7 @@ discard block |
||
821 | 821 | * Validate the passed aspects or services. |
822 | 822 | * |
823 | 823 | * @param array $aspects_services List of aspects or services that need to be validated. |
824 | - * @param array $default Default value if not valid. |
|
824 | + * @param string[] $default Default value if not valid. |
|
825 | 825 | * @return array The validated list of aspects or services. |
826 | 826 | */ |
827 | 827 | public function validate_aspects_services( &$aspects_services, $default = array() ) { |