Plugin Directory

Changeset 1601512


Ignore:
Timestamp:
02/22/2017 03:59:07 PM (9 years ago)
Author:
Shawn Patrick Rice
Message:

v2.0.1 rollback array declaration to be compatible pre PHP 5.4

Location:
reckoning/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • reckoning/trunk/README.txt

    r1595523 r1601512  
    55Requires at least: 3.5.1
    66Tested up to: 4.7.2
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: MIT
    99License URI: https://opensource.org/licenses/MIT
     
    6363
    6464== Changelog ==
     65= 2.0.1 =
     66* Rollback array declarations to be compatible with PHP < 5.4
     67
    6568= 2.0.0 =
    6669* Include private posts (breaking change) [PR](https://github.com/shawnrice/reckoning/pull/2) [@boonebgorges](https://github.com/boonebgorges)
  • reckoning/trunk/reckoning.php

    r1595523 r1601512  
    1616 * Plugin URI:        https://github.com/shawnrice/wp-reckoning
    1717 * Description:       Tallies posts / comments per user per blog.
    18  * Version:           2.0.0
     18 * Version:           2.0.1
    1919 * Author:            Shawn Patrick Rice
    2020 * Author URI:        http://shawnrice.org
     
    9797    global $wpdb;
    9898    $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(
    101101         'author' => $user->data->ID,
    102102         'numberposts' => '-1',
    103          'post_status' => [
     103         'post_status' => array(
    104104                'publish',
    105105                'private',
    106             ],
    107     ] );
     106            ),
     107    ) );
    108108
    109109    echo '<div class="wrap">';
     
    221221    // Start looping through each user.
    222222foreach ( $users as $user ) :
    223     $posts = get_posts( [
     223    $posts = get_posts( array(
    224224        'author'      => $user->data->ID,
    225225        'numberposts' => '-1',
    226         'post_status' => [
     226        'post_status' => array(
    227227            'publish',
    228228            'private',
    229         ],
    230     ] );
    231     $comments = get_comments( [ 'user_id' => $user->data->ID ] );
     229        ),
     230    ) );
     231    $comments = get_comments( array( 'user_id' => $user->data->ID ) );
    232232
    233233    // Show the username with a link to a more detailed view of the user.
Note: See TracChangeset for help on using the changeset viewer.