[wp-trac] [WordPress Trac] #31556: `$wpdb` global object should be retrieved via a helper function to help prevent global stomping
WordPress Trac
noreply at wordpress.org
Fri May 1 14:06:39 UTC 2015
#31556: `$wpdb` global object should be retrieved via a helper function to help
prevent global stomping
-----------------------------------+------------------------------
Reporter: jtsternberg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by jtsternberg):
It is a proposal for only `$wpdb` for now. Re: churn vs global stomping, I
think the pros outweigh the cons, but ultimately that is not my call. I'd
prefer to never call `global $anything;` in my code again, so something
like this starts to get us there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31556#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list