Skip to:
Content

BuddyPress.org

Changeset 10783


Ignore:
Timestamp:
05/19/2016 03:29:10 AM (9 years ago)
Author:
boonebgorges
Message:

Pass $user_id to the bp_get_total_blog_count_for_user filter.

Props Offereins.
See #6997.

File:
1 edited

Legend:

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

    r10712 r10783  
    877877         *
    878878         * @since 1.2.0
    879          *
    880          * @param int $value Total number of blogs for a given user.
    881          */
    882         return apply_filters( 'bp_get_total_blog_count_for_user', bp_blogs_total_blogs_for_user( $user_id ) );
     879         * @since 2.6.0 Added the `$user_id` parameter.
     880         *
     881         * @param int $value   Total number of blogs for a given user.
     882         * @param int $user_id ID of the queried user.
     883         */
     884        return apply_filters( 'bp_get_total_blog_count_for_user', bp_blogs_total_blogs_for_user( $user_id ), $user_id );
    883885    }
    884886    add_filter( 'bp_get_total_blog_count_for_user', 'bp_core_number_format' );
Note: See TracChangeset for help on using the changeset viewer.