Skip to:
Content

BuddyPress.org

Ticket #5809: 5809.1.diff

File 5809.1.diff, 1.9 KB (added by Offereins, 9 years ago)
  • bp-xprofile/bp-xprofile-admin.php

    diff --git bp-xprofile/bp-xprofile-admin.php bp-xprofile/bp-xprofile-admin.php
    index 1067b59..c958fe6 100644
    class BP_XProfile_User_Admin { 
    549549                $stats_metabox->priority = 'low';
    550550
    551551                // Each Group of fields will have his own metabox
    552                 if ( false == bp_is_user_spammer( $user_id ) && bp_has_profile( array( 'fetch_fields' => false ) ) ) {
     552                if ( false == bp_is_user_spammer( $user_id ) && bp_has_profile( array( 'user_id' => $user_id, 'fetch_fields' => false ) ) ) {
    553553                        while ( bp_profile_groups() ) : bp_the_profile_group();
    554554                                add_meta_box( 'bp_xprofile_user_admin_fields_' . sanitize_key( bp_get_the_profile_group_slug() ), esc_html( bp_get_the_profile_group_name() ), array( &$this, 'user_admin_profile_metaboxes' ), $screen_id, 'normal', 'core', array( 'profile_group_id' => absint( bp_get_the_profile_group_id() ) ) );
    555555                        endwhile;