[buddypress-trac] [BuddyPress] #3447: new 'hide empty profile fields' feature

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Aug 7 12:41:08 UTC 2011


#3447: new 'hide empty profile fields' feature
-------------------------+------------------------------
 Reporter:  dontdream    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  XProfile     |     Version:  1.5
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by dontdream):

 I found why bp_has_profile() ignores the hide_empty_fields parameter it
 receives, that's because inside the function it uses:

 extract( $r, EXTR_SKIP );

 instead of:

 extract( $r, EXTR_OVERWRITE );

 Since $hide_empty_fields already existe, it is not extracted.

 Sorry I didn't realize this before.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3447#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list