Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2009 06:26:55 PM (17 years ago)
Author:
apeatling
Message:

Applying jjj trunk fixes to 1.1 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-xprofile/bp-xprofile-classes.php

    r2025 r2075  
    182182        var $type;
    183183        var $name;
    184         var $desc;
     184        var $description;
    185185        var $is_required;
    186186        var $can_delete;
     
    215215                        $this->type = $field->type;
    216216                        $this->name = stripslashes($field->name);
    217                         $this->desc = stripslashes($field->description);
     217                        $this->description = stripslashes($field->description);
    218218                        $this->is_required = $field->is_required;
    219219                        $this->can_delete = $field->can_delete;
     
    257257                $this->type = apply_filters( 'xprofile_field_type_before_save', $this->type, $this->id );
    258258                $this->name = apply_filters( 'xprofile_field_name_before_save', $this->name, $this->id );
    259                 $this->desc = apply_filters( 'xprofile_field_description_before_save', $this->desc, $this->id );
     259                $this->description = apply_filters( 'xprofile_field_description_before_save', $this->description, $this->id );
    260260                $this->is_required = apply_filters( 'xprofile_field_is_required_before_save', $this->is_required, $this->id );
    261261                $this->order_by = apply_filters( 'xprofile_field_order_by_before_save', $this->order_by, $this->id );
     
    265265               
    266266                if ( $this->id != null )
    267                         $sql = $wpdb->prepare("UPDATE {$bp->profile->table_name_fields} SET group_id = %d, parent_id = 0, type = %s, name = %s, description = %s, is_required = %d, order_by = %s, field_order = %d WHERE id = %d", $this->group_id, $this->type, $this->name, $this->desc, $this->is_required, $this->order_by, $this->field_order, $this->id);
     267                        $sql = $wpdb->prepare("UPDATE {$bp->profile->table_name_fields} SET group_id = %d, parent_id = 0, type = %s, name = %s, description = %s, is_required = %d, order_by = %s, field_order = %d WHERE id = %d", $this->group_id, $this->type, $this->name, $this->description, $this->is_required, $this->order_by, $this->field_order, $this->id);
    268268                else
    269                         $sql = $wpdb->prepare("INSERT INTO {$bp->profile->table_name_fields} (group_id, parent_id, type, name, description, is_required, order_by, field_order ) VALUES (%d, 0, %s, %s, %s, %d, %s, %d )", $this->group_id, $this->type, $this->name, $this->desc, $this->is_required, $this->order_by, $this->field_order );
     269                        $sql = $wpdb->prepare("INSERT INTO {$bp->profile->table_name_fields} (group_id, parent_id, type, name, description, is_required, order_by, field_order ) VALUES (%d, 0, %s, %s, %s, %d, %s, %d )", $this->group_id, $this->type, $this->name, $this->description, $this->is_required, $this->order_by, $this->field_order );
    270270
    271271                // Check for null so field options can be changed without changing any other part of the field.
     
    520520
    521521                        $this->name                     = $_POST['title'];
    522                         $this->desc                     = $_POST['description'];
     522                        $this->description      = $_POST['description'];
    523523                        $this->is_required      = $_POST['required'];
    524524                        $this->type                     = $_POST['fieldtype'];
     
    555555                                        <h3><label for="description"><?php _e("Field Description", 'buddypress') ?></label></h3>
    556556                                        <div id="titlewrap">
    557                                                 <textarea name="description" id="description" rows="8" cols="60"><?php echo htmlspecialchars( $this->desc ); ?></textarea>
     557                                                <textarea name="description" id="description" rows="8" cols="60"><?php echo htmlspecialchars( $this->description ); ?></textarea>
    558558                                        </div>
    559559                                </div>
Note: See TracChangeset for help on using the changeset viewer.