Changeset 1844 for trunk/bp-xprofile/bp-xprofile-templatetags.php
- Timestamp:
- 09/10/2009 06:34:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-templatetags.php
r1835 r1844 51 51 52 52 $this->group = $this->groups[$this->current_group]; 53 $this->field_count = count($this->group->fields);54 53 55 54 if ( !$fields = wp_cache_get( 'xprofile_fields_' . $this->group->id . '_' . $this->user_id, 'bp' ) ) { 56 for ( $i = 0; $i < $this->field_count; $i++ ) {55 for ( $i = 0; $i < count($this->group->fields); $i++ ) { 57 56 $field = new BP_XProfile_Field( $this->group->fields[$i]->id, $this->user_id ); 58 57 $fields[$i] = $field; … … 62 61 } 63 62 64 $this->group->fields = $fields; 63 $this->group->fields = apply_filters( 'xprofile_group_fields', $fields, $this->group->id ); 64 $this->field_count = count( $this->group->fields ); 65 65 66 66 return $this->group; … … 178 178 179 179 $profile_template = new BP_XProfile_Data_Template( $user_id, $profile_group_id ); 180 181 return $profile_template->has_groups(); 180 return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template ); 182 181 } 183 182
Note: See TracChangeset
for help on using the changeset viewer.