@@ -247,6 +247,11 @@ discard block |
||
247 | 247 | ) ); |
248 | 248 | } |
249 | 249 | |
250 | + /** |
|
251 | + * @param string $path |
|
252 | + * @param string $classname |
|
253 | + * @param Jetpack_IXR_Client $constructor_arguments |
|
254 | + */ |
|
250 | 255 | public static function route( $path, $classname, $method, |
251 | 256 | $constructor_arguments = NULL, |
252 | 257 | $endpoint_arguments = NULL |
@@ -876,7 +881,6 @@ discard block |
||
876 | 881 | * @since 4.3.0 |
877 | 882 | * |
878 | 883 | * @param string $module Module slug. If empty, it's assumed we're updating a module and we'll try to get its slug. |
879 | - * @param bool $cache Whether to cache the options or return always fresh. |
|
880 | 884 | * |
881 | 885 | * @return array |
882 | 886 | */ |
@@ -1753,7 +1757,7 @@ discard block |
||
1753 | 1757 | * |
1754 | 1758 | * @param string $route Regular expression for the endpoint with the module slug to return. |
1755 | 1759 | * |
1756 | - * @return array |
|
1760 | + * @return string |
|
1757 | 1761 | */ |
1758 | 1762 | public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) { |
1759 | 1763 | |
@@ -1778,7 +1782,7 @@ discard block |
||
1778 | 1782 | * @param string $modules Can be a single module or a list of modules. |
1779 | 1783 | * @param null|string $slug Slug of the module in the first parameter. |
1780 | 1784 | * |
1781 | - * @return array |
|
1785 | + * @return string |
|
1782 | 1786 | */ |
1783 | 1787 | public static function prepare_modules_for_response( $modules = '', $slug = null ) { |
1784 | 1788 | if ( get_option( 'permalink_structure' ) ) { |