Opened 9 years ago
Closed 9 years ago
#37639 closed enhancement (duplicate)
Add utility function for wpdb global
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Database | Keywords: | |
Focuses: | Cc: |
Description
It seems that other globals are getting methods so you don't need to global the reference. Most recent example I remember is
wp_scripts()
I think having a utility function for wpdb (that only globals it 1 time) would be a better design than using a global everywhere.
Change History (1)
Note: See
TracTickets for help on using
tickets.
Thanks for the suggestion, @pcfreak30!
I understand the advantages of this approach, but I still have the same reservations mentioned in #31556.