Changeset 48497 for trunk/src/wp-includes/post.php
- Timestamp:
- 07/16/2020 09:42:48 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r48480 r48497 2648 2648 $counts = wp_cache_get( $cache_key, 'counts' ); 2649 2649 if ( false !== $counts ) { 2650 // We may have cached this before every status was registered. 2651 foreach ( get_post_stati() as $status ) { 2652 if ( ! isset( $counts->{$status} ) ) { 2653 $counts->{$status} = 0; 2654 } 2655 } 2656 2650 2657 /** This filter is documented in wp-includes/post.php */ 2651 2658 return apply_filters( 'wp_count_posts', $counts, $type, $perm );
Note: See TracChangeset
for help on using the changeset viewer.