Plugin Directory

Changeset 2952525


Ignore:
Timestamp:
08/12/2023 06:25:02 AM (3 years ago)
Author:
whatshelp
Message:

1.8.12 fixes

Location:
whatshelp-chat-button
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • whatshelp-chat-button/tags/1.8.12/whatshelp.php

    r2952523 r2952525  
    33 * Plugin Name: Chat Button by GetButton.io (ex. WhatsHelp)
    44 * Description: The Chat button by GetButton takes website visitor directly to the messaging app such as Facebook Messenger or WhatsApp and allows them to initiate a conversation with you. After that, both you and your customer can follow up the conversation anytime and anywhere!
    5  * Version: 1.8.11
     5 * Version: 1.8.12
    66 * Author: GetButton
    77 * Author URI: https://getbutton.io
     
    156156function add_whatshelp_code()
    157157{
     158    $err_output = 'console.warn("Getbutton: parsing code failed!"); return;';
    158159    echo get_prefix();
    159160    try {
    160161        echo get_clean_code(get_option('whatshelp-code'));
     162    } catch (\Throwable $err) {
     163        echo $err_output;
    161164    } catch (\Exception $err) {
    162         echo 'console.warn("Getbutton: parsing code failed!"); return;';
     165        echo $err_output;
    163166    }
    164167    echo get_suffix();
  • whatshelp-chat-button/trunk/whatshelp.php

    r2952523 r2952525  
    33 * Plugin Name: Chat Button by GetButton.io (ex. WhatsHelp)
    44 * Description: The Chat button by GetButton takes website visitor directly to the messaging app such as Facebook Messenger or WhatsApp and allows them to initiate a conversation with you. After that, both you and your customer can follow up the conversation anytime and anywhere!
    5  * Version: 1.8.11
     5 * Version: 1.8.12
    66 * Author: GetButton
    77 * Author URI: https://getbutton.io
     
    156156function add_whatshelp_code()
    157157{
     158    $err_output = 'console.warn("Getbutton: parsing code failed!"); return;';
    158159    echo get_prefix();
    159160    try {
    160161        echo get_clean_code(get_option('whatshelp-code'));
     162    } catch (\Throwable $err) {
     163        echo $err_output;
    161164    } catch (\Exception $err) {
    162         echo 'console.warn("Getbutton: parsing code failed!"); return;';
     165        echo $err_output;
    163166    }
    164167    echo get_suffix();
Note: See TracChangeset for help on using the changeset viewer.