[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Mon Feb 3 00:53:49 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 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.
That's a short and narrow view, even for me. But it will force devs to
improve and get with the times.
Just imagine how many plugins are insecure because a dev is too lazy to
use the API. And how many inefficient code exists because the dev is not
aware of $wpdb.
I believe (strongly) that breaking compatibility with plugins not using
$wpdb will benefit every user in the long run. All be it a bit messy
during the transition.
Wordpress offers a rubost and (I think) beautiful API for databases.
Everyone who doesn't use it is not seeking compatibility and ease of use.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:174>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list