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

WordPress Trac noreply at wordpress.org
Sun Oct 27 14:34:54 UTC 2013


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

Comment (by atimmer):

 Replying to [comment:51 bpetty]:
 > Replying to [comment:2 scribu]:
 > > I don't think we should waste effort on making plugins/themes that
 still don't use $wpdb work in PHP 5.4.
 >
 > By my count, I've found 1,722 plugins in the WP.org plugin repository
 that make raw calls to mysql_*() functions. Some might have nothing to to
 with the WP main connection or not actually be calls to core PHP methods,
 but most of them likely are.
 >
 > That's 7.4% of all plugins.

 Using the slurper I have run that stats just now, there are some plugins
 that failed downloading but here are my stats for me as of right now:
 Total plugins: 33263
 Plugins using mysql_query: 1019 (files found: 2061)
 Percentage: 3,06%

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


More information about the wp-trac mailing list