Skip to content

Commit

Permalink
clean up custom field edit html
Browse files Browse the repository at this point in the history
  • Loading branch information
modelm committed Jun 11, 2018
1 parent cb85159 commit a653abe
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions includes/class-bp-xprofile-field-type-activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class BP_XProfile_Field_Type_Activity extends BP_XProfile_Field_Type {
*/
public function __construct() {
parent::__construct();
// TODO xxxxxxxxxxxxxxxxxxxxxxxxxxx add_filter( 'xprofile_data_value_before_save', '__return_true' );.
}

/**
Expand Down Expand Up @@ -143,7 +142,6 @@ public static function display_filter( $field_value, $field_id = '' ) {
* @return void
*/
public function edit_field_html( array $raw_properties = [] ) {
printf( '<label>%s</label>', $this->name );
echo 'This field lists your recent activity.';
}

Expand Down
1 change: 0 additions & 1 deletion includes/class-bp-xprofile-field-type-blogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public static function display_filter( $field_value, $field_id = '' ) {
* @return void
*/
public function edit_field_html( array $raw_properties = [] ) {
printf( '<label>%s</label>', $this->name );
echo 'This field lists your blog memberships.';
}

Expand Down
3 changes: 1 addition & 2 deletions includes/class-bp-xprofile-field-type-core-deposits.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ public static function display_filter( $field_value, $field_id = '' ) {
* @return void
*/
public function edit_field_html( array $raw_properties = [] ) {
echo '<label>' . $this->name . '</label>';
echo 'This field is not editable.';
echo 'This field lists your CORE deposits.';
}

/**
Expand Down
1 change: 0 additions & 1 deletion includes/class-bp-xprofile-field-type-groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public static function display_filter( $field_value, $field_id = '' ) {
* @return void
*/
public function edit_field_html( array $raw_properties = [] ) {
printf( '<label>%s</label>', $this->name );
echo 'This field lists your group memberships.';
}

Expand Down

0 comments on commit a653abe

Please sign in to comment.