[wp-trac] [WordPress Trac] #9308: Plugins easily break wp-db.php -
one line patch fixes the problem
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 10 10:23:38 GMT 2009
#9308: Plugins easily break wp-db.php - one line patch fixes the problem
--------------------------+-------------------------------------------------
Reporter: mark8barnes | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.2
Component: General | Version: 2.7.1
Severity: normal | Keywords: wp-db, has-patch, needs-testing
--------------------------+-------------------------------------------------
Plugins that use the mysql_select_db() function without a link identifier
can break wp-db.php as wp-db.php assumes that the table will not change
during the running of the script.
The simple fix is to reselect the WP table using mysql_select_db(DB_NAME)
before running @mysql_query on line 608 of wp-db.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9308>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list