[buddypress-trac] [BuddyPress Trac] #5731: text/number profile fields not rendered if value == 0

buddypress-trac noreply at wordpress.org
Sat Jun 28 18:23:15 UTC 2014

#5731: text/number profile fields not rendered if value == 0
 Reporter:  DJPaul        |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.1
Component:  XProfile      |     Version:  1.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


 In [changeset:"8554"]:
 #!CommitTicketReference repository="" revision="8554"
 xProfile: fix profile fields not rendering if their value is "0".

 This was caused by a reliance on the `empty()` function in a few places,
 which was causing us to
 not handle "0" (both as int and string) as a valid field value. In turn,
 this was causing the
 profile field template loop to skip rendering the affected field.

 Fixes #5731, props DJPaul and r-a-y.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5731#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list