Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#37639 closed enhancement (duplicate)

Add utility function for wpdb global

Reported by: pcfreak30's profile pcfreak30 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Database Keywords:
Focuses: Cc:


It seems that other globals are getting methods so you don't need to global the reference. Most recent example I remember is


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)

#1 @pento
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version trunk deleted

Thanks for the suggestion, @pcfreak30!

I understand the advantages of this approach, but I still have the same reservations mentioned in #31556.

Note: See TracTickets for help on using tickets.