[buddypress-trac] [BuddyPress Trac] #6924: Allow 'description' to be saved for xprofile field options

buddypress-trac noreply at wordpress.org
Tue Feb 23 17:39:00 UTC 2016


#6924: Allow 'description' to be saved for xprofile field options
----------------------------------+------------------------------
 Reporter:  locomo                |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Component - XProfile  |     Version:  2.4.0
 Severity:  normal                |  Resolution:
 Keywords:                        |
----------------------------------+------------------------------

Comment (by locomo):

 oops $sql should be changed to this:


 {{{
 $sql = $wpdb->prepare( "INSERT INTO {$bp->profile->table_name_fields}
 (group_id, parent_id, type, name, description, is_required, option_order,
 is_default_option) VALUES (%d, %d, 'option', %s, %s, 0, %d, %d)",
 $this->group_id, $parent_id, $option_value, $this->description, $counter,
 $is_default );

 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6924#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list