| @@ -938,8 +938,9 @@ | ||
| 938 | 938 | // so the cloned site doesn't share the source row's file_key. |
| 939 | 939 | 'http_user' => MainWP_Credential_Storage::decrypt_credential( $website->http_user ), |
| 940 | 940 | 'http_pass' => MainWP_Credential_Storage::decrypt_credential( $website->http_pass ), |
| 941 | 941 | 'ssl_version' => $website->ssl_version, |
| 942 | + 'force_use_ipv4' => $website->force_use_ipv4, | |
| 942 | 943 | ) |
| 943 | 944 | ); |
| 944 | 945 | } |
| 945 | 946 | $ret['siteid'] = $clone_site->id; |
| @@ -966,14 +967,15 @@ | ||
| 966 | 967 | // for the new clone with a fresh keyfile. |
| 967 | 968 | 'http_user' => MainWP_Credential_Storage::decrypt_credential( $website->http_user ), |
| 968 | 969 | 'http_pass' => MainWP_Credential_Storage::decrypt_credential( $website->http_pass ), |
| 969 | 970 | 'sslVersion' => $website->ssl_version, |
| 971 | + 'force_use_ipv4' => $website->force_use_ipv4, | |
| 970 | 972 | 'wpe' => $website->wpe, |
| 971 | 973 | 'isStaging' => 1, |
| 972 | 974 | ); |
| 973 | 975 | |
| 974 | 976 | $de_privkey = base64_decode( $website->privkey ); //phpcs:ignore -- NOSONAR -trust - compatible. |
| 975 | - $de_privkey = MainWP_Encrypt_Data_Lib::instance()->decrypt_privkey( $de_privkey, $site_id ); | |
| 977 | + $de_privkey = MainWP_Encrypt_Data_Lib::instance()->decrypt_privkey( $de_privkey, $website->id ); | |
| 976 | 978 | |
| 977 | 979 | if ( ! empty( $de_privkey ) ) { |
| 978 | 980 | $de_privkey = base64_encode( $de_privkey ); //phpcs:ignore -- NOSONAR -ok. |
| 979 | 981 | } else { |