Completed
Pull Request — master (#6478)
by Nabeel
17:30
created
_inc/lib/core-api/class.jetpack-core-api-module-endpoints.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 	 *
160 160
 	 * @since 4.3.0
161 161
 	 *
162
-	 * @return array Array of Jetpack modules.
162
+	 * @return string Array of Jetpack modules.
163 163
 	 */
164 164
 	public function get_modules() {
165 165
 		require_once( JETPACK__PLUGIN_DIR . 'class.jetpack-admin.php' );
Please login to merge, or discard this patch.
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -536,7 +536,6 @@  discard block
 block discarded – undo
536 536
 	 * @uses Jetpack::disconnect();
537 537
 	 * @since 4.3.0
538 538
 	 *
539
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
540 539
 	 *
541 540
 	 * @return string|WP_Error A raw URL if the connection URL could be built; error message otherwise.
542 541
 	 */
@@ -556,7 +555,6 @@  discard block
 block discarded – undo
556 555
 	 *
557 556
 	 * @since 4.3.0
558 557
 	 *
559
-	 * @param WP_REST_Request $request The request sent to the WP REST API.
560 558
 	 *
561 559
 	 * @return object
562 560
 	 */
@@ -1966,7 +1964,7 @@  discard block
 block discarded – undo
1966 1964
 	 *
1967 1965
 	 * @param string $route Regular expression for the endpoint with the module slug to return.
1968 1966
 	 *
1969
-	 * @return array
1967
+	 * @return string
1970 1968
 	 */
1971 1969
 	public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) {
1972 1970
 
@@ -1991,7 +1989,7 @@  discard block
 block discarded – undo
1991 1989
 	 * @param string      $modules Can be a single module or a list of modules.
1992 1990
 	 * @param null|string $slug    Slug of the module in the first parameter.
1993 1991
 	 *
1994
-	 * @return array
1992
+	 * @return string
1995 1993
 	 */
1996 1994
 	public static function prepare_modules_for_response( $modules = '', $slug = null ) {
1997 1995
 		if ( get_option( 'permalink_structure' ) ) {
Please login to merge, or discard this patch.