Closed renatonascalves closed 6 years ago
Looks good! But can you change all instances of buddypress()
to $GLOBALS['bp']
instead? BP Follow still supports v1.2 (for better or worse!).
Not sure if that will fix the use of global variables with WPCS though.
Thanks @renatonascalves!
@r-a-y About the global change, not a problem! Makes total sense!
@r-a-y Do you need more updates or changes?
@renatonascalves - Appreciate the PR. I'll take a look when I can and will report back.
I've merged this. If there are issues, one of us should hopefully catch some bugs and fix them :)
Thanks @renatonascalves !
Great! @r-a-y I have a site running with the WPCS changes without issues. But if something comes up, count on me to debug and fix. :)
I have a local, modified, version of BuddyPress Followers. While updating my version with the recent changes from BF, I noticed several WPCS bugs.
This PR tries to fix most of them.