Changeset 792384
- Timestamp:
- 10/23/2013 03:25:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dashboard/trunk/rightnow.php
r787085 r792384 103 103 foreach ( $post_types as $post_type => $post_type_obj ){ 104 104 $num_posts = wp_count_posts( $post_type ); 105 if ( $num_posts ) {105 if ( $num_posts && $num_posts->publish ) { 106 106 printf( 107 107 '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s %3$s</a></li>', … … 114 114 // Comments 115 115 $num_comm = wp_count_comments(); 116 if ( $num_comm ) {116 if ( $num_comm && $num_comm->total_comments ) { 117 117 $text = _n( 'comment', 'comments', $num_comm->total_comments ); 118 118 printf(
Note: See TracChangeset
for help on using the changeset viewer.