[wp-trac] [WordPress Trac] #37639: Add utility function for wpdb global

WordPress Trac noreply at wordpress.org
Thu Aug 11 20:47:50 UTC 2016


#37639: Add utility function for wpdb global
-------------------------+-----------------------------
 Reporter:  pcfreak30    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Database     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37639>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list