[wp-trac] [WordPress Trac] #37699: Death to Globals Episode #1: A Registry, A Pattern

WordPress Trac noreply at wordpress.org
Sun Aug 28 00:33:54 UTC 2016


#37699: Death to Globals Episode #1: A Registry, A Pattern
----------------------------+------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.7
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------

Comment (by tw2113):

 Replying to [comment:9 jdgrimes]:
 > This would still break any code that was doing `new wpdb()` though. Not
 sure how common that is, but there may be plugins that do it.

 I can think of at least one time where I created my own instance for an
 external read-only database. Been a couple years, but it's still in place
 last I checked.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37699#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list