Created
August 21, 2010 12:28
-
-
Save timwhitlock/542243 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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'); | |
+require_wp_db(); | |
$step = isset( $_GET['step'] ) ? $_GET['step'] : 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 - https://gist.github.com/1688245 )
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.