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

buddypress-trac noreply at wordpress.org
Fri Apr 29 16:50:17 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:  Future Release
Component:  Component - Any/All     |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+-----------------------------

Comment (by r-a-y):

 > Why the heck are we casting strings to integers EVERYWHERE instead of
 just fixing the relevant properties when we fetch stuff from the database?

 That's exactly what I'm doing.  Please take a closer look at my patch.

 > For an example, see the new patch I've put up for the
 BP_Activity_Activity which typecasts integer properties after we fetch
 results from the database cache

 I missed the `BP_Activity_Activity` class in my patch so thanks adding a
 patch for that.

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


More information about the buddypress-trac mailing list