Improve syntax of class method definitions, to avoid E_STRICT warnings

Continues the work started in r7277

See #5108

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7289 cdf35c40-ae34-48e0-9cc9-0c9da1808c22