@@ -766,7 +766,7 @@ function xmlrpc_removepostdata( $content ) {
766766 * @since 3.7.0
767767 *
768768 * @param string $content Content to extract URLs from.
769- * @return array URLs found in passed string.
769+ * @return string[] Array of URLs found in passed string.
770770 */
771771function wp_extract_urls ( $ content ) {
772772 preg_match_all (
@@ -2487,7 +2487,7 @@ function wp_unique_filename( $dir, $filename, $unique_filename_callback = null )
24872487 *
24882488 * @param string $name Filename.
24892489 * @param null|string $deprecated Never used. Set to null.
2490- * @param mixed $bits File content
2490+ * @param string $bits File content
24912491 * @param string $time Optional. Time formatted in 'yyyy/mm'. Default null.
24922492 * @return array
24932493 */
@@ -3003,7 +3003,7 @@ function wp_get_mime_types() {
30033003 *
30043004 * @since 4.6.0
30053005 *
3006- * @return array Array of file extensions types keyed by the type of file.
3006+ * @return array[] Multi-dimensional array of file extensions types keyed by the type of file.
30073007 */
30083008function wp_get_ext_types () {
30093009
@@ -3014,8 +3014,7 @@ function wp_get_ext_types() {
30143014 *
30153015 * @see wp_ext2type()
30163016 *
3017- * @param array $ext2type Multi-dimensional array with extensions for a default set
3018- * of file types.
3017+ * @param array[] $ext2type Multi-dimensional array of file extensions types keyed by the type of file.
30193018 */
30203019 return apply_filters (
30213020 'ext2type ' ,
@@ -4262,7 +4261,7 @@ function wp_parse_list( $list ) {
42624261 * @since 3.0.0
42634262 *
42644263 * @param array|string $list List of ids.
4265- * @return array Sanitized array of IDs.
4264+ * @return int[] Sanitized array of IDs.
42664265 */
42674266function wp_parse_id_list ( $ list ) {
42684267 $ list = wp_parse_list ( $ list );
@@ -4276,7 +4275,7 @@ function wp_parse_id_list( $list ) {
42764275 * @since 4.7.0
42774276 *
42784277 * @param array|string $list List of slugs.
4279- * @return array Sanitized array of slugs.
4278+ * @return string[] Sanitized array of slugs.
42804279 */
42814280function wp_parse_slug_list ( $ list ) {
42824281 $ list = wp_parse_list ( $ list );
@@ -5842,7 +5841,7 @@ function wp_scheduled_delete() {
58425841 * @param array $default_headers List of headers, in the format `array( 'HeaderKey' => 'Header Name' )`.
58435842 * @param string $context Optional. If specified adds filter hook {@see 'extra_$context_headers'}.
58445843 * Default empty.
5845- * @return array Array of file headers in `HeaderKey => Header Value` format .
5844+ * @return string[] Array of file header values keyed by header name .
58465845 */
58475846function get_file_data ( $ file , $ default_headers , $ context = '' ) {
58485847 // We don't need to write to the file, so just open for reading.
0 commit comments