From 1447092f6e725255b027aabddb3d4137970dc06b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 17 Sep 2014 17:58:15 +0000 Subject: [PATCH] Don't set ftp_credentials option when installling. see #29635. Built from https://develop.svn.wordpress.org/trunk@29749 git-svn-id: http://core.svn.wordpress.org/trunk@29521 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 286d76ff59..18c1fc9a2f 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -1014,7 +1014,9 @@ function request_filesystem_credentials($form_post, $type = '', $error = false, $stored_credentials['hostname'] .= ':' . $stored_credentials['port']; unset($stored_credentials['password'], $stored_credentials['port'], $stored_credentials['private_key'], $stored_credentials['public_key']); - update_option('ftp_credentials', $stored_credentials); + if ( ! defined( 'WP_INSTALLING' ) ) { + update_option( 'ftp_credentials', $stored_credentials ); + } return $credentials; } $hostname = isset( $credentials['hostname'] ) ? $credentials['hostname'] : '';