[wp-trac] [WordPress Trac] #39795: WordPress objects are only accessible via global variables
WordPress Trac
noreply at wordpress.org
Mon Feb 6 15:11:56 UTC 2017
#39795: WordPress objects are only accessible via global variables
-------------------------+------------------------------
Reporter: jdmweb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by swissspidy):
Even if we'd add `get_wpdb()` or `get_wp_filesystem()`, those functions
would still use global variables.
IMHO a solution like in #37699 should be preferred.
See also #38073 and #36934 that try to improve the global variable
situation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39795#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list