Changeset 5563 for trunk/wp-admin/index.php
- Timestamp:
- 05/27/2007 07:32:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r5308 r5563 102 102 $numposts = (int) $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'"); 103 103 $numcomms = (int) $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'"); 104 $numcats = (int) $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->categories"); 104 $numcats = wp_count_terms('category'); 105 $numtags = wp_count_terms('post_tag'); 105 106 106 107 $post_str = sprintf(__ngettext('%1$s <a href="%2$s" title="Posts">post</a>', '%1$s <a href="%2$s" title="Posts">posts</a>', $numposts), number_format_i18n($numposts), 'edit.php'); … … 109 110 ?> 110 111 111 <p><?php printf(__('There are currently %1$s and %2$s, contained within %3$s .'), $post_str, $comm_str, $cat_str); ?></p>112 <p><?php printf(__('There are currently %1$s and %2$s, contained within %3$s and %4$s tags.'), $post_str, $comm_str, $cat_str, $numtags); ?></p> 112 113 </div> 113 114
Note: See TracChangeset
for help on using the changeset viewer.