Plugin Directory

Changeset 2932007


Ignore:
Timestamp:
06/28/2023 10:19:17 PM (3 years ago)
Author:
8blocks
Message:

3.0.4 - Shortcode conflict fixed

Location:
home-value/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • home-value/trunk/home-values.php

    r2931593 r2932007  
    44 * Plugin Name: Home Value
    55 * Description: Home Value provides your website visitors the ability to get accurate home price valuations of their applicable property(s).
    6  * Version: 3.0.3
     6 * Version: 3.0.4
    77 * Author: 8blocks
    88 * Author Email:    support@8blocks.com
     
    1717
    1818// Plugin directory path and URL.
    19 define('HOME_VALUES_PLUGIN_VERSION', '3.0.3');
     19define('HOME_VALUES_PLUGIN_VERSION', '3.0.4');
    2020define('HOME_VALUES_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2121define('HOME_VALUES_PLUGIN_URL', plugin_dir_url(__FILE__));
  • home-value/trunk/public/class-home-values-shortcodes.php

    r2931593 r2932007  
    351351  private function send_email_to_admin($lead_session_data, $replacement_tags)
    352352  {
    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');
    354358    $from = do_shortcode(home_values_get_setting('emails', 'sender_email'));
    355359    $from_name = do_shortcode(home_values_get_setting('emails', 'sender_name'));
     
    357361    $message = do_shortcode(home_values_get_setting('emails', 'new_lead_email'));
    358362
    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));
    367364
    368365    $subject = $this->process_tags_and_shortcodes($subject, $replacement_tags);
     
    375372    );
    376373
    377     $success = true;
     374    $failures = 0;
    378375    foreach ($to as $email) {
     376      $email = do_shortcode($email);
     377      $email = $this->process_tags_and_shortcodes($email, $replacement_tags);
     378      $email = trim($email);
    379379      if (!$this->send_email($email, $subject, $message, $headers)) {
    380         $success = false;
     380        $failures++;
    381381      }
    382382    }
    383     return $success;
     383    return $failures === 0; // success only if there are no failures
    384384  }
    385385
  • home-value/trunk/readme.txt

    r2931593 r2932007  
    8080== Changelog ==
    8181
     82= 3.0.4 20230628 =
     83
     84* Shortcode conflict fixed
     85
    8286= 3.0.3 20230627 =
    8387
Note: See TracChangeset for help on using the changeset viewer.