[buddypress-trac] [BuddyPress Trac] #6082: Incorrect results from xprofile_get_field_id_from_name( $field_name )

buddypress-trac noreply at wordpress.org
Mon Dec 29 17:48:24 UTC 2014


#6082: Incorrect results from xprofile_get_field_id_from_name( $field_name )
--------------------------+-----------------------------
 Reporter:  dontdream     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XProfile      |    Version:  2.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When a field name and an option value are the same, the function


 {{{
 xprofile_get_field_id_from_name( $field_name )
 }}}


 may return the option ID instead of the desired field ID.

 The attached patch restricts the search to rows with parent_id = 0.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6082>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list