Ticket #16603: 16603-wp_count_posts-filter.diff
File 16603-wp_count_posts-filter.diff, 474 bytes (added by , 12 years ago) |
---|
-
wp-includes/post.php
1897 1897 $stats[$row['post_status']] = $row['num_posts']; 1898 1898 1899 1899 $stats = (object) $stats; 1900 $stats = apply_filters( 'wp_count_posts', $stats, $type, $perm ); 1900 1901 wp_cache_set($cache_key, $stats, 'counts'); 1901 1902 1902 1903 return $stats;