Completed
Push — update/rest-api-use-register-r... ( f04349 )
by Marin
09:37
created
_inc/lib/class.core-rest-api-endpoints.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1932,7 +1932,7 @@  discard block
 block discarded – undo
1932 1932
 	 *
1933 1933
 	 * @param string $route Regular expression for the endpoint with the module slug to return.
1934 1934
 	 *
1935
-	 * @return array
1935
+	 * @return string
1936 1936
 	 */
1937 1937
 	public static function get_module_requested( $route = '/module/(?P<slug>[a-z\-]+)' ) {
1938 1938
 
@@ -1957,7 +1957,7 @@  discard block
 block discarded – undo
1957 1957
 	 * @param string      $modules Can be a single module or a list of modules.
1958 1958
 	 * @param null|string $slug    Slug of the module in the first parameter.
1959 1959
 	 *
1960
-	 * @return array
1960
+	 * @return string
1961 1961
 	 */
1962 1962
 	public static function prepare_modules_for_response( $modules = '', $slug = null ) {
1963 1963
 		if ( get_option( 'permalink_structure' ) ) {
Please login to merge, or discard this patch.