Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2014 01:41:43 PM (10 years ago)
Author:
boonebgorges
Message:

Pass the proper user_id when setting up xprofile meta boxes on the Community Profile Dashboard panel

The default value, bp_displayed_user_id(), is not defined at this point, so we
must manually pass the $user_id.

Fixes #5809

Props Offereins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r8785 r8823  
    554554
    555555        // Each Group of fields will have his own metabox
    556         if ( ! bp_is_user_spammer( $user_id ) && bp_has_profile( array( 'fetch_fields' => false ) ) ) {
     556        $profile_args = array(
     557            'fetch_fields' => false,
     558            'user_id'      => $user_id,
     559        );
     560
     561        if ( ! bp_is_user_spammer( $user_id ) && bp_has_profile( $profile_args ) ) {
    557562
    558563            // Loop through field groups and add a metabox for each one
Note: See TracChangeset for help on using the changeset viewer.