From 9c751b268ae49d2a80f0972d3fd253558bb03ee6 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 17 Sep 2014 17:57:59 +0000 Subject: [PATCH] Don't set ftp_credentials option when installling. see #29635. git-svn-id: https://develop.svn.wordpress.org/trunk@29749 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/file.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 286d76ff59..18c1fc9a2f 100644 --- a/src/wp-admin/includes/file.php +++ b/src/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'] : '';