#1847 closed task (blessed) (fixed)
Reduce duplication by using magic get/set methods in main bbPress class
Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.1 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Tools - Code Improvements | Keywords: | |
Cc: |
Description
The main bbPress class sets some default variables, then overrides most of them in the setup_globals() method. This is wasteful, and that data can all just be set inside of setup_globals.
While we're moving things around, we may as well move everything into using magic getters and setters. The only exception to this is bbpress()->current_user, which is passed by reference.
Note: See
TracTickets for help on using
tickets.
(In [3951]) Code Improvement: