From 01ecedbb0d848a72d8e137a25bf2813ec36a83af Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Fri, 28 Mar 2014 05:42:49 +0000 Subject: [PATCH] Fix the `wp_count_attachments()` PHPDoc to reflect that it returns an object, not array. See #25412. git-svn-id: https://develop.svn.wordpress.org/trunk@27807 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 2122a5fdea..ad101edd04 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -2161,7 +2161,7 @@ function wp_count_posts( $type = 'post', $perm = '' ) { * @since 2.5.0 * * @param string|array $mime_type Optional. Array or comma-separated list of MIME patterns. - * @return array Number of posts for each mime type. + * @return object An object containing the attachment counts by mime type. */ function wp_count_attachments( $mime_type = '' ) { global $wpdb;