The Life and Times of Michael Shadle

Blog | Projects | Netflix

Due to popular demand - more MySQLi for WordPress!
Tuesday, March 4th, 2008 at 2:50 am

I've had two requests now for MySQLi updates, so here ya go. It's pretty simple to do it yourself - just look for any mysql_ string, replace it to mysqli_ (where applicable) and in some instances, change the order of the parameters.

Below is the version of wp-includes/wp-db.php for production WP 2.3.3

  1. Download the file here
  2. Copy it over the existing wp-includes/wp-db.php file
  3. Enjoy!

Below is a version that works against the latest in SVN trunk (right now revision 7152) using the new db.php override feature (apparently still not in 2.3.x)

  1. Download the file here
  2. Copy it to wp-content/db.php (important - this is a hard-coded location)
  3. Enjoy!

Let me know if there are any issues, but in my quick little sandbox I made it worked fine...

This entry was posted and is filed under WordPress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to "Due to popular demand - more MySQLi for WordPress!"

  1. On March 4th, 2008 at 6:01 am, Lazy says:

    thank you very much! i`ve tried the trunk mysqli-patch and it works like a charm.. got no problem at all, it is really good working!! thank you!

    Greetings

    Chris

Comment on this post:

Entries (RSS) and Comments (RSS). 15 queries. 0.213 seconds.