Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save timwhitlock/542243 to your computer and use it in GitHub Desktop.
$ git diff install.old install.php
diff --git a/install.old b/install.php
index d23073b..6b2202e 100644
--- a/install.old
+++ b/install.php
@@ -39,7 +39,7 @@ require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
require_once( dirname( __FILE__ ) . '/includes/upgrade.php' );
/** Load wpdb */
-require_once(dirname(dirname(__FILE__)) . '/wp-includes/wp-db.php');
$step = isset( $_GET['step'] ) ? $_GET['step'] : 0;
Copy link

This is still broken in WP 3.3.1.
Additionally the require_wp_db function has a massive error and can't have ever been tested.
(It should look like this - )
With that amount of patching, you may as as well replace the bundled wp-db.php file completely. the wp-content/db.php hack seems like an afterthought, and plain doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment