@@ -255,6 +255,11 @@ discard block |
||
255 | 255 | ) ); |
256 | 256 | } |
257 | 257 | |
258 | + /** |
|
259 | + * @param string $path |
|
260 | + * @param string $classname |
|
261 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
262 | + */ |
|
258 | 263 | public static function route( $path, $classname, $method, |
259 | 264 | $constructor_arguments = NULL, |
260 | 265 | $endpoint_arguments = NULL |
@@ -699,7 +704,7 @@ discard block |
||
699 | 704 | /** |
700 | 705 | * Sets a jetpack option flag, and responds with an appropriate WP API response. |
701 | 706 | * |
702 | - * @param $option_name The name of the jetpack option to set to true |
|
707 | + * @param string $option_name The name of the jetpack option to set to true |
|
703 | 708 | * |
704 | 709 | * @since 4.4.0 |
705 | 710 | * |
@@ -943,7 +948,6 @@ discard block |
||
943 | 948 | * @since 4.3.0 |
944 | 949 | * |
945 | 950 | * @param string $module Module slug. If empty, it's assumed we're updating a module and we'll try to get its slug. |
946 | - * @param bool $cache Whether to cache the options or return always fresh. |
|
947 | 951 | * |
948 | 952 | * @return array |
949 | 953 | */ |
@@ -1837,7 +1841,7 @@ discard block |
||
1837 | 1841 | * |
1838 | 1842 | * @param string $route Regular expression for the endpoint with the module slug to return. |
1839 | 1843 | * |
1840 | - * @return array |
|
1844 | + * @return string |
|
1841 | 1845 | */ |
1842 | 1846 | public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) { |
1843 | 1847 | |
@@ -1862,7 +1866,7 @@ discard block |
||
1862 | 1866 | * @param string $modules Can be a single module or a list of modules. |
1863 | 1867 | * @param null|string $slug Slug of the module in the first parameter. |
1864 | 1868 | * |
1865 | - * @return array |
|
1869 | + * @return string |
|
1866 | 1870 | */ |
1867 | 1871 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
1868 | 1872 | if ( get_option( 'permalink_structure' ) ) { |