From 0d2147cd09e4a6db99ce646ff2e159d7af22c9de Mon Sep 17 00:00:00 2001 From: Justin Tadlock Date: Fri, 25 Oct 2013 02:23:37 -0500 Subject: [PATCH] Don't run upgrade script when installing. Props @mikeschinkel. --- includes/update.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/update.php b/includes/update.php index 37d7a03..808bf5a 100644 --- a/includes/update.php +++ b/includes/update.php @@ -6,6 +6,10 @@ * @subpackage Includes */ +/* Don't run when installing. */ +if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) + return; + /* Hook our version check to 'init'. */ add_action( 'init', 'members_version_check' );