PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.8.0
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.8.0
5.8.0 5.8.1 5.7.0 5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 All 41 releases
← All changes | src/FormSettings/FormSettingsDTO.php +6 -2 5.6.0 → 5.8.0 View file →
@@ -7,8 +7,10 @@
7 7 */
8 8
9 9 namespace Forge12\DoubleOptIn\FormSettings;
10 10
11 +use Forge12\DoubleOptIn\Setup\FormDefaults;
12 +
11 13 if ( ! defined( 'ABSPATH' ) ) {
12 14 exit;
13 15 }
14 16
@@ -272,10 +274,12 @@
272 274 *
273 275 * @return self
274 276 */
275 277 public static function createDefault(): self {
276 - $dto = new self();
277 - $dto->sender = get_bloginfo( 'admin_email' );
278 + $dto = new self();
279 +
280 + // Sender defaults from the setup wizard, if it ran.
281 + list( $dto->sender, $dto->senderName ) = FormDefaults::forNewForm( (string) get_bloginfo( 'admin_email' ), '' );
278 282 return $dto;
279 283 }
280 284
281 285 /**