Use correct variable. props helen. see #17071.

git-svn-id: https://develop.svn.wordpress.org/trunk@25581 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-09-23 20:17:37 +00:00
parent 53a59c01a8
commit 17a0ace2a4
1 changed files with 1 additions and 1 deletions

View File

@ -2165,7 +2165,7 @@ function wp_count_attachments( $mime_type = '' ) {
* @param object $counts An object containing the attachment counts by mime type.
* @param string $mime_type The mime type pattern used to filter the attachments counted.
*/
return apply_filters( 'wp_count_attachments', (object) $stats, $mime_type );
return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );
}
/**