[buddypress-trac] [BuddyPress Trac] #6959: Use is_default_field() everywhere instead of comparing to 1

buddypress-trac noreply at wordpress.org
Sun Mar 13 17:37:52 UTC 2016


#6959: Use is_default_field() everywhere instead of comparing to 1
----------------------------------+-----------------------------
 Reporter:  slaFFik               |      Owner:
     Type:  task                  |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Component - Activity  |    Version:
 Severity:  normal                |   Keywords:
----------------------------------+-----------------------------
 xProfile field '''Name''' is default, has an id=1 and in different places
 we can see both:
 1. comparison to `1`
 2. `is_default_field()` check

 I propose to switch to using the `is_default_field()` and add a filter
 there as well.

 Related and inspired by #6955.

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


More information about the buddypress-trac mailing list