Skip to:
Content

bbPress.org

Changeset 7925


Ignore:
Timestamp:
10/10/2026 07:27:12 AM (5 weeks ago)
Author:
johnjamesjacoby
Message:

BuddyPress: Fix member forum pagination.

Set bbPress profile section query state for every displayed BuddyPress member, including profiles viewed while logged out or by another user. This keeps topics, replies, engagements, favorites, and subscriptions pagination rooted at the active forum section.

In trunk, for 2.7.

Props SirLouen, jgasba, robin-w, hardel, imath, lmstearn, ahillmortons.
See #3355.

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/members.php

    r7654 r7925  
    171171         * @since 2.3.0 bbPress (r4616)
    172172         * @since 2.6.0 bbPress (r6320) Support all profile sections
     173         * @since 2.6.20 bbPress (r7925) Support all displayed profiles
    173174         *
    174175         * @global WP_Query $wp_query
    175          * @return If not viewing your own profile.
     176         * @return void
    176177         */
    177178        public function set_member_forum_query_vars() {
    178179
    179180                // Special handling for forum component
    180                 if ( ! bp_is_my_profile() ) {
     181                if ( ! bp_is_user() ) {
    181182                        return;
    182183                }
Note: See TracChangeset for help on using the changeset viewer.