Ticket #33714: 33714.2.diff
File 33714.2.diff, 617 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/includes/dashboard.php
233 233 <div class="main"> 234 234 <ul> 235 235 <?php 236 $post_types = apply_filters( 'dashboard_right_now_post_types', array( 'post', 'page' ) ); 237 236 238 // Posts and Pages 237 foreach ( array( 'post', 'page' )as $post_type ) {239 foreach ( $post_types as $post_type ) { 238 240 $num_posts = wp_count_posts( $post_type ); 239 241 if ( $num_posts && $num_posts->publish ) { 240 242 if ( 'post' == $post_type ) {