[wp-trac] [WordPress Trac] #26804: Support multiple $wpdb handlers
WordPress Trac
noreply at wordpress.org
Fri Jan 10 13:13:32 UTC 2014
#26804: Support multiple $wpdb handlers
--------------------------------+------------------------------
Reporter: mgibbs189 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback close |
--------------------------------+------------------------------
Comment (by markoheijnen):
I agree with johnbillion and wonderboymusic here. The code doesn't solve
the issue. It instead it will be more confusing since a normal db.php will
set {{{$wpdb}}} and you can't control which file did set the variable.
Your use case doesn't show the need of multiple db classes. You miss use
the file to execute code that doesn't involve the db handler.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26804#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list