Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/29/2014 05:01:17 PM (10 years ago)
Author:
johnjamesjacoby
Message:

First pass at introducing BuddyPress profile editing to /wp-admin:

  • New bp-members-admin.php and accompanying assets to handle the initial admin page creation (outside of XProfile).
  • New stats template functions in Blogs, Friends, and Groups components, to provide additional meta data about a members community involvement.
  • Modifies some existing XProfile admin/template/filters to make it more accommodating to querying for profile data outside of BuddyPress's traditional displayed_user context.
  • Props imath, boonebgorges, johnjamesjacoby. Fixes #5197.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-template.php

    r7762 r7764  
    5252        $this->current_group++;
    5353
    54         $this->group         = $this->groups[$this->current_group];
    55         $this->group->fields = apply_filters( 'xprofile_group_fields', $this->group->fields, $this->group->id );
    56         $this->field_count   = count( $this->group->fields );
     54        $this->group       = $this->groups[$this->current_group];
     55        $this->field_count = 0;
     56
     57        if( ! empty( $this->group->fields ) ) {
     58            $this->group->fields = apply_filters( 'xprofile_group_fields', $this->group->fields, $this->group->id );
     59            $this->field_count   = count( $this->group->fields );
     60        }
    5761
    5862        return $this->group;
Note: See TracChangeset for help on using the changeset viewer.