Skip to:
Content

bbPress.org

Changeset 6786


Ignore:
Timestamp:
03/24/2018 08:00:15 PM (4 years ago)
Author:
johnjamesjacoby
Message:

Stats: Whitespace adjustments to some statistics functions.

See #3196.

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/metaboxes.php

    r6780 r6786  
    3636        'count_trashed_replies' => false,
    3737        'count_empty_tags'      => false
    38     ));
     38    ) );
    3939
    4040    // Users
  • trunk/src/includes/common/functions.php

    r6784 r6786  
    274274    // Parse arguments against default values
    275275    $r = bbp_parse_args( $args, array(
     276
     277        // Users
    276278        'count_users'           => true,
     279
     280        // Forums
    277281        'count_forums'          => true,
     282
     283        // Topics
    278284        'count_topics'          => true,
    279285        'count_pending_topics'  => true,
     
    281287        'count_spammed_topics'  => true,
    282288        'count_trashed_topics'  => true,
     289
     290        // Replies
    283291        'count_replies'         => true,
    284292        'count_pending_replies' => true,
     
    286294        'count_spammed_replies' => true,
    287295        'count_trashed_replies' => true,
     296
     297        // Topic tags
    288298        'count_tags'            => true,
    289299        'count_empty_tags'      => true
     300
    290301    ), 'get_statistics' );
    291302
     
    294305    $reply_count     = $reply_count_hidden    = 0;
    295306    $topic_tag_count = $empty_topic_tag_count = 0;
     307    $hidden_topic_title = $hidden_reply_title = '';
    296308
    297309    // Users
     
    461473    // Add the hidden (topic/reply) count title attribute strings because we
    462474    // don't need to run the math functions on these (see above)
    463     $statistics['hidden_topic_title'] = isset( $hidden_topic_title ) ? $hidden_topic_title : '';
    464     $statistics['hidden_reply_title'] = isset( $hidden_reply_title ) ? $hidden_reply_title : '';
     475    $statistics['hidden_topic_title'] = $hidden_topic_title;
     476    $statistics['hidden_reply_title'] = $hidden_reply_title;
    465477
    466478    // Filter & return
Note: See TracChangeset for help on using the changeset viewer.