Changeset 9856
- Timestamp:
- 11/24/2008 03:12:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/dashboard.php
r9785 r9856 183 183 184 184 // Posts 185 $num = isset($num_posts->publish) ? number_format_i18n( $num_posts->publish ) : 0;185 $num = number_format_i18n( $num_posts->publish ); 186 186 if ( current_user_can( 'edit_posts' ) ) 187 187 $text = "<a href='edit.php'>$num</a>"; … … 189 189 $text = $num; 190 190 echo '<td class="first b b-posts">' . $text . '</td>'; 191 echo '<td class="t posts">' . __ngettext( 'Post', 'Posts', $num) . '</td>';191 echo '<td class="t posts">' . __ngettext( 'Post', 'Posts', intval($num_posts->publish) ) . '</td>'; 192 192 /* TODO: Show status breakdown on hover 193 193 if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can
Note: See TracChangeset
for help on using the changeset viewer.