From 71263c4854970a3d2ddbd3034951b23017c6f427 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 23 Sep 2013 20:18:10 +0000 Subject: [PATCH] Use correct variable. props helen. see #17071. Built from https://develop.svn.wordpress.org/trunk@25581 git-svn-id: http://core.svn.wordpress.org/trunk@25498 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index cf809e592a..fb711d5bd1 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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 ); } /**