Plugin Directory

Changeset 1859122


Ignore:
Timestamp:
04/16/2018 02:12:41 PM (8 years ago)
Author:
freshchat
Message:

Update on user identifier

Location:
freshchat
Files:
4 edited
3 copied

Legend:

Unmodified
Added
Removed
  • freshchat/tags/2.2.1/Readme.txt

    r1858977 r1859122  
    66Tested up to: 4.9.1
    77Requires PHP: 5.2.4
    8 Stable tag: 2.2.0
     8Stable tag: 2.2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • freshchat/tags/2.2.1/freshchat.php

    r1858977 r1859122  
    22/*
    33Plugin Name: Freshchat
    4 Version: 2.2.0
     4Version: 2.2.1
    55Author: Freshchat
    66Description: Modern messaging software that your sales and customer engagement teams will love.
  • freshchat/tags/2.2.1/widget-settings/add_to_page.php

    r1858976 r1859122  
    22
    33// Add the Freshchat Javascript
    4 // Add our snippet before the body tag close
    54add_action('wp_footer', 'add_fc');
    65
     
    1312    $sanitized_email = sanitize_email($current_user->user_email);
    1413    echo "<script>\n";
    15     echo "window.fcSettings.externalId ='".sanitize_text_field($current_user->user_pass)."';\n";
     14    echo "window.fcSettings.externalId ='".sanitize_text_field($current_user->$sanitized_email)."';\n";
    1615    echo "window.fcSettings.restoreId ='".sanitize_text_field($user_meta[0])."';\n";
    1716    echo "window.fcSettings.onInit = function() {
  • freshchat/trunk/Readme.txt

    r1858977 r1859122  
    66Tested up to: 4.9.1
    77Requires PHP: 5.2.4
    8 Stable tag: 2.2.0
     8Stable tag: 2.2.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • freshchat/trunk/freshchat.php

    r1858977 r1859122  
    22/*
    33Plugin Name: Freshchat
    4 Version: 2.2.0
     4Version: 2.2.1
    55Author: Freshchat
    66Description: Modern messaging software that your sales and customer engagement teams will love.
  • freshchat/trunk/widget-settings/add_to_page.php

    r1858976 r1859122  
    22
    33// Add the Freshchat Javascript
    4 // Add our snippet before the body tag close
    54add_action('wp_footer', 'add_fc');
    65
     
    1312    $sanitized_email = sanitize_email($current_user->user_email);
    1413    echo "<script>\n";
    15     echo "window.fcSettings.externalId ='".sanitize_text_field($current_user->user_pass)."';\n";
     14    echo "window.fcSettings.externalId ='".sanitize_text_field($current_user->$sanitized_email)."';\n";
    1615    echo "window.fcSettings.restoreId ='".sanitize_text_field($user_meta[0])."';\n";
    1716    echo "window.fcSettings.onInit = function() {
Note: See TracChangeset for help on using the changeset viewer.