Skip to content

Commit

Permalink
Property
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkoJoseph committed Oct 14, 2021
1 parent b6c2eec commit 15103fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions api/class-controller-property.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand All @@ -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']) {
Expand Down
4 changes: 2 additions & 2 deletions wp-sweepbright.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 15103fb

Please sign in to comment.