@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * |
177 | 177 | * @since 4.3.0 |
178 | 178 | * |
179 | - * @return array Array of Jetpack modules. |
|
179 | + * @return string Array of Jetpack modules. |
|
180 | 180 | */ |
181 | 181 | public function get_modules() { |
182 | 182 | require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' ); |
@@ -1104,7 +1104,6 @@ discard block |
||
1104 | 1104 | * |
1105 | 1105 | * @since 4.3.0 |
1106 | 1106 | * |
1107 | - * @param WP_REST_Request $request |
|
1108 | 1107 | * |
1109 | 1108 | * @return bool does a current user have enough privileges. |
1110 | 1109 | */ |
@@ -266,6 +266,11 @@ discard block |
||
266 | 266 | ) ); |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @param string $path |
|
271 | + * @param string $classname |
|
272 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
273 | + */ |
|
269 | 274 | public static function route( $path, $classname, $method, |
270 | 275 | $constructor_arguments = NULL, |
271 | 276 | $endpoint_arguments = NULL |
@@ -722,7 +727,7 @@ discard block |
||
722 | 727 | /** |
723 | 728 | * Sets a jetpack option flag, and responds with an appropriate WP API response. |
724 | 729 | * |
725 | - * @param $option_name The name of the jetpack option to set to true |
|
730 | + * @param string $option_name The name of the jetpack option to set to true |
|
726 | 731 | * |
727 | 732 | * @since 4.4.0 |
728 | 733 | * |
@@ -1883,7 +1888,7 @@ discard block |
||
1883 | 1888 | * |
1884 | 1889 | * @param string $route Regular expression for the endpoint with the module slug to return. |
1885 | 1890 | * |
1886 | - * @return array |
|
1891 | + * @return string |
|
1887 | 1892 | */ |
1888 | 1893 | public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) { |
1889 | 1894 | |
@@ -1908,7 +1913,7 @@ discard block |
||
1908 | 1913 | * @param string $modules Can be a single module or a list of modules. |
1909 | 1914 | * @param null|string $slug Slug of the module in the first parameter. |
1910 | 1915 | * |
1911 | - * @return array |
|
1916 | + * @return string |
|
1912 | 1917 | */ |
1913 | 1918 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
1914 | 1919 | if ( get_option( 'permalink_structure' ) ) { |