From 15103fb5c1a3afce487aaf591025dbde813f65a0 Mon Sep 17 00:00:00 2001 From: Falko Joseph Date: Thu, 14 Oct 2021 15:48:36 +0200 Subject: [PATCH] Property --- api/class-controller-property.php | 8 ++++---- wp-sweepbright.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/class-controller-property.php b/api/class-controller-property.php index 2f560292..36fd1771 100644 --- a/api/class-controller-property.php +++ b/api/class-controller-property.php @@ -74,8 +74,8 @@ public function save($data) } // Save USPs + $usps = []; if ($data['form']['usp']) { - $usps = []; foreach ($data['form']['usp'] as $usp) { $usp['value'] = trim($usp['value']); if ($usp['value']) { @@ -85,10 +85,10 @@ public function save($data) ]; } } - update_field('custom_fields', [ - 'usp' => $usps, - ], $id); } + update_field('custom_fields', [ + 'usp' => $usps, + ], $id); // Save contact if ($data['form']['contact'] && $data['form']['contact']['title']) { diff --git a/wp-sweepbright.php b/wp-sweepbright.php index 29e44943..1c16a74b 100644 --- a/wp-sweepbright.php +++ b/wp-sweepbright.php @@ -10,7 +10,7 @@ * Author: Compagnon Agency * Author URI: https://compagnon.agency/ * Text Domain: wp-sweepbright - * Version: 2.0.1 + * Version: 2.0.2 */ // If this file is called directly, abort. @@ -23,7 +23,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define('WP_SWEEPBRIGHT_VERSION', '2.0.1'); +define('WP_SWEEPBRIGHT_VERSION', '2.0.2'); /** * The code that runs during plugin activation.