Ticket #47652: 47652.patch
| File 47652.patch, 476 bytes (added by , 7 years ago) |
|---|
-
wp-admin/includes/dashboard.php
267 267 // Posts and Pages 268 268 foreach ( array( 'post', 'page' ) as $post_type ) { 269 269 $num_posts = wp_count_posts( $post_type ); 270 if ( $num_posts && $num_posts->publish) {270 if ( ! empty( $num_posts ) && ! empty( $num_posts->publish ) ) { 271 271 if ( 'post' == $post_type ) { 272 272 $text = _n( '%s Post', '%s Posts', $num_posts->publish ); 273 273 } else {