Ticket #5127 (closed task (blessed): fixed)
Move all mysql_* function calls to wp-db.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.3 |
| Severity: | normal | Keywords: | mysql has-patch |
| Cc: | ComputerGuru@… |
Description
All calls to database-specific functions should be in a single file for portablility and organization purposes (in this case, wp-db.php for MySQL).
The only mysql_* function not yet constrained to wp-db.php is mysql_get_server_info();
Patch attached. Changes schema.php, upgrade.php, and wp-db.php.
Attachments
Change History
- Keywords has-patch added
- Version set to 2.3
- Milestone changed from 2.3.1 to 2.4
As this is a "feature request", I'm bumping the milestone to 2.4. Feature requests shouldn't be done in maintenance releases.
- Owner changed from anonymous to westi
- Status changed from new to assigned
Adding to my review and checkin todo list
The entire function should be moved into wpdb:check_server_version() with it returning an error message via WP_Error.
Note: See
TracTickets for help on using
tickets.

