Changeset 1303361
- Timestamp:
- 12/08/2015 10:57:53 PM (10 years ago)
- Location:
- comment-count
- Files:
-
- 3 added
- 2 edited
-
tags/1.2 (added)
-
tags/1.2/comment-count.php (added)
-
tags/1.2/readme.txt (added)
-
trunk/comment-count.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
comment-count/trunk/comment-count.php
r155528 r1303361 2 2 /* 3 3 Plugin Name: Comment Count 4 Plugin URI: http ://wordpress.org/extend/plugins/comment-count/4 Plugin URI: https://wordpress.org/plugins/comment-count/ 5 5 Description: Counts the total number of comments. 6 Version: 1. 16 Version: 1.2 7 7 Author: Nick Momrik 8 8 Author URI: http://nickmomrik.com/ … … 11 11 function mdv_comment_count() { 12 12 global $wpdb; 13 $request = "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'";14 13 15 echo $wpdb->get_var($request);14 echo number_format( $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'" ) ); 16 15 } 17 ?> -
comment-count/trunk/readme.txt
r248713 r1303361 2 2 Contributors: nickmomrik 3 3 Tags: comments, count 4 Stable tag: trunk 4 Stable tag: 1.2 5 Tested up to: 4.4 5 6 6 7 Counts the number of comments.
Note: See TracChangeset
for help on using the changeset viewer.