[buddypress-trac] [BuddyPress Trac] #6977: Audit all DB fetch methods to return integers where appropriate

buddypress-trac noreply at wordpress.org
Wed Mar 23 19:00:10 UTC 2016


#6977: Audit all DB fetch methods to return integers where appropriate
---------------------------------+------------------------------
 Reporter:  r-a-y                |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  Awaiting Review
Component:  Component - Any/All  |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  dev-feedback         |
---------------------------------+------------------------------

Comment (by boonebgorges):

 Also:

 - We should be cognizant of null vs `0` vs `'0'` as much as possible.
 [attachment:6977.BP_Friends_Friendship.patch] will mean that a failed
 lookup results in a `BP_Friends_Friendship` object where, eg,
 `initiator_user_id` is `null`. I think this is good - better than `0`,
 which would be misleading - but either way, we should try to be
 consistent.

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


More information about the buddypress-trac mailing list