[wp-trac] [WordPress Trac] #21663: Use PDO for MySQL queries when PDO is available

WordPress Trac noreply at wordpress.org
Wed Jan 16 17:12:43 UTC 2013


#21663: Use PDO for MySQL queries when PDO is available
--------------------------------------------------+------------------
 Reporter:  scottconnerly                         |       Owner:
     Type:  task (blessed)                        |      Status:  new
 Priority:  normal                                |   Milestone:  3.6
Component:  Database                              |     Version:  3.5
 Severity:  normal                                |  Resolution:
 Keywords:  dev-feedback has-patch needs-testing  |
--------------------------------------------------+------------------
Changes (by alex-ye):

 * keywords:  dev-feedback has-patch => dev-feedback has-patch needs-testing


Comment:

 Replying to [comment:42 adegans]:
 > If anything, such plugins should be removed from the repository and
 treated as a risk or as non-compatible to WordPress as a whole.
 > In a "get-with-the-program-or-stay-away" manner.

 Why the support of mysql_* functions is still exists , and if you see the
 code above there is a constant WPDB_DRIVER that can select the needed
 database driver .

 Notice that the plugin that used mysql_* functions was should using $wpdb
 class insted of :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:45>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list