Changeset 2932007
- Timestamp:
- 06/28/2023 10:19:17 PM (3 years ago)
- Location:
- home-value/trunk
- Files:
-
- 3 edited
-
home-values.php (modified) (2 diffs)
-
public/class-home-values-shortcodes.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
home-value/trunk/home-values.php
r2931593 r2932007 4 4 * Plugin Name: Home Value 5 5 * Description: Home Value provides your website visitors the ability to get accurate home price valuations of their applicable property(s). 6 * Version: 3.0. 36 * Version: 3.0.4 7 7 * Author: 8blocks 8 8 * Author Email: support@8blocks.com … … 17 17 18 18 // Plugin directory path and URL. 19 define('HOME_VALUES_PLUGIN_VERSION', '3.0. 3');19 define('HOME_VALUES_PLUGIN_VERSION', '3.0.4'); 20 20 define('HOME_VALUES_PLUGIN_DIR', plugin_dir_path(__FILE__)); 21 21 define('HOME_VALUES_PLUGIN_URL', plugin_dir_url(__FILE__)); -
home-value/trunk/public/class-home-values-shortcodes.php
r2931593 r2932007 351 351 private function send_email_to_admin($lead_session_data, $replacement_tags) 352 352 { 353 $to = do_shortcode(home_values_get_setting('emails', 'new_lead_recipients')); 353 354 $currentBlogId = get_current_blog_id(); 355 $blogDetails = get_blog_details($currentBlogId); 356 357 $to = home_values_get_setting('emails', 'new_lead_recipients'); 354 358 $from = do_shortcode(home_values_get_setting('emails', 'sender_email')); 355 359 $from_name = do_shortcode(home_values_get_setting('emails', 'sender_name')); … … 357 361 $message = do_shortcode(home_values_get_setting('emails', 'new_lead_email')); 358 362 359 $to = $this->process_tags_and_shortcodes($to, $replacement_tags); 360 $to = preg_split('/\r\n|\r|\n/', $to); 361 362 if (is_array($to)) { 363 $to = array_filter($to, function ($email) { 364 return !empty($email); 365 }); 366 } 363 $to = preg_split('/\r\n|\r|\n/', trim($to)); 367 364 368 365 $subject = $this->process_tags_and_shortcodes($subject, $replacement_tags); … … 375 372 ); 376 373 377 $ success = true;374 $failures = 0; 378 375 foreach ($to as $email) { 376 $email = do_shortcode($email); 377 $email = $this->process_tags_and_shortcodes($email, $replacement_tags); 378 $email = trim($email); 379 379 if (!$this->send_email($email, $subject, $message, $headers)) { 380 $ success = false;380 $failures++; 381 381 } 382 382 } 383 return $ success;383 return $failures === 0; // success only if there are no failures 384 384 } 385 385 -
home-value/trunk/readme.txt
r2931593 r2932007 80 80 == Changelog == 81 81 82 = 3.0.4 20230628 = 83 84 * Shortcode conflict fixed 85 82 86 = 3.0.3 20230627 = 83 87
Note: See TracChangeset
for help on using the changeset viewer.