From 04558f4424e7d6536c0837361b684a3adc9c2f10 Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 19 Aug 2007 04:27:04 +0000 Subject: [PATCH] Don't run if installing, fixes $4772 git-svn-id: http://svn.automattic.com/wordpress/trunk@5900 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/update.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/update.php b/wp-includes/update.php index 32c48c4b9..d19726e0e 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -3,6 +3,9 @@ // A simple set of functions to check our version 1.0 update service function wp_version_check() { + if ( strpos($_SERVER['PHP_SELF'], 'install.php') !== false || defined('WP_INSTALLING') ) + return; + global $wp_version; $php_version = phpversion();