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

WordPress Trac noreply at wordpress.org
Mon Feb 3 01:00:20 UTC 2014


#21663: Use PDO or mysqli for MySQL queries when available
------------------------------+------------------
 Reporter:  scottconnerly     |       Owner:
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  3.9
Component:  Database          |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------

Comment (by nacin):

 Replying to [comment:174 adegans]:
 > What about plugins that not use $wpdb... They dont strife to be
 compatible if they don't. WordPress or it's team doesn't have to concern
 themselves with those.
 > So either ban them or break them... They should get in line and use the
 API in a meaningfull way or they become irrelevant.

 I'm very concerned with those. We don't break backwards compatibility just
 to spite plugin authors. Some of them may have been using mysql_*
 accidentally, or recklessly, or even intentionally (say, for something not
 [easily] done with wpdb). And it's been working for them for 11 years
 without any problem. We're not just going to indiscriminately break
 plugins (and, thus, sites) when we have the option to not do so. It's not
 our style and it doesn't sit well with our philosophies.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:175>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list