Skip to:
Content

BuddyPress.org

Changeset 9169


Ignore:
Timestamp:
11/23/2014 01:47:32 AM (10 years ago)
Author:
boonebgorges
Message:

Ensure that 'count_total' is available throughout bp_has_activities() loop.

Props tharsheblows.
Fixes #5915.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r9136 r9169  
    196196            'page_arg'          => 'acpage',
    197197            'max'               => false,
     198            'count_total'       => false,
    198199            'sort'              => false,
    199200            'include'           => false,
     
    227228                'activity_ids'      => explode( ',', $include ),
    228229                'max'               => $max,
     230                'count_total'       => $count_total,
    229231                'page'              => $this->pag_page,
    230232                'per_page'          => $this->pag_num,
     
    241243                'display_comments'  => $display_comments,
    242244                'max'               => $max,
     245                'count_total'       => $count_total,
    243246                'per_page'          => $this->pag_num,
    244247                'page'              => $this->pag_page,
     
    448451 *     @type int|bool $max Maximum number of results to return.
    449452 *           Default: false (unlimited).
     453 *     @type string|bool $count_total If true, an additional DB query is run to
     454 *           count the total activity items for the query. Default: false.
    450455 *     @type string $sort 'ASC' or 'DESC'. Default: 'DESC'.
    451456 *     @type array|bool $exclude Array of activity IDs to exclude. Default: false.
     
    587592        'per_page'          => 20,           // number of items per page
    588593        'max'               => false,        // max number to return
     594        'count_total'       => false,
    589595        'show_hidden'       => $show_hidden, // Show activity items that are hidden site-wide?
    590596        'spam'              => 'ham_only',   // Hide spammed items
     
    720726        'page_arg'          => $page_arg,
    721727        'max'               => $max,
     728        'count_total'       => $count_total,
    722729        'sort'              => $sort,
    723730        'include'           => $include,
Note: See TracChangeset for help on using the changeset viewer.