Changeset 1601512
- Timestamp:
- 02/22/2017 03:59:07 PM (9 years ago)
- Location:
- reckoning/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
reckoning.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reckoning/trunk/README.txt
r1595523 r1601512 5 5 Requires at least: 3.5.1 6 6 Tested up to: 4.7.2 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: MIT 9 9 License URI: https://opensource.org/licenses/MIT … … 63 63 64 64 == Changelog == 65 = 2.0.1 = 66 * Rollback array declarations to be compatible with PHP < 5.4 67 65 68 = 2.0.0 = 66 69 * Include private posts (breaking change) [PR](https://github.com/shawnrice/reckoning/pull/2) [@boonebgorges](https://github.com/boonebgorges) -
reckoning/trunk/reckoning.php
r1595523 r1601512 16 16 * Plugin URI: https://github.com/shawnrice/wp-reckoning 17 17 * Description: Tallies posts / comments per user per blog. 18 * Version: 2.0. 018 * Version: 2.0.1 19 19 * Author: Shawn Patrick Rice 20 20 * Author URI: http://shawnrice.org … … 97 97 global $wpdb; 98 98 $blog = get_blog_details(); 99 $comments = get_comments( [ 'user_id' => $user->data->ID ]);100 $posts = get_posts( [99 $comments = get_comments( array( 'user_id' => $user->data->ID ) ); 100 $posts = get_posts( array( 101 101 'author' => $user->data->ID, 102 102 'numberposts' => '-1', 103 'post_status' => [103 'post_status' => array( 104 104 'publish', 105 105 'private', 106 ],107 ]);106 ), 107 ) ); 108 108 109 109 echo '<div class="wrap">'; … … 221 221 // Start looping through each user. 222 222 foreach ( $users as $user ) : 223 $posts = get_posts( [223 $posts = get_posts( array( 224 224 'author' => $user->data->ID, 225 225 'numberposts' => '-1', 226 'post_status' => [226 'post_status' => array( 227 227 'publish', 228 228 'private', 229 ],230 ]);231 $comments = get_comments( [ 'user_id' => $user->data->ID ]);229 ), 230 ) ); 231 $comments = get_comments( array( 'user_id' => $user->data->ID ) ); 232 232 233 233 // Show the username with a link to a more detailed view of the user.
Note: See TracChangeset
for help on using the changeset viewer.