wp/wp-admin/includes/translation-install.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-admin/includes/translation-install.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-admin/includes/translation-install.php	Tue Sep 27 16:37:53 2022 +0200
@@ -14,7 +14,7 @@
  *
  * @param string       $type Type of translations. Accepts 'plugins', 'themes', 'core'.
  * @param array|object $args Translation API arguments. Optional.
- * @return object|WP_Error On success an object of translations, WP_Error on failure.
+ * @return array|WP_Error On success an associative array of translations, WP_Error on failure.
  */
 function translations_api( $type, $args = null ) {
 	// Include an unmodified $wp_version.
@@ -29,9 +29,9 @@
 	 *
 	 * @since 4.0.0
 	 *
-	 * @param false|object $result The result object. Default false.
-	 * @param string       $type   The type of translations being requested.
-	 * @param object       $args   Translation API arguments.
+	 * @param false|array $result The result array. Default false.
+	 * @param string      $type   The type of translations being requested.
+	 * @param object      $args   Translation API arguments.
 	 */
 	$res = apply_filters( 'translations_api', false, $type, $args );
 
@@ -102,9 +102,9 @@
 	 *
 	 * @since 4.0.0
 	 *
-	 * @param object|WP_Error $res  Response object or WP_Error.
-	 * @param string          $type The type of translations being requested.
-	 * @param object          $args Translation API arguments.
+	 * @param array|WP_Error $res  Response as an associative array or WP_Error.
+	 * @param string         $type The type of translations being requested.
+	 * @param object         $args Translation API arguments.
 	 */
 	return apply_filters( 'translations_api_result', $res, $type, $args );
 }