Changeset 2645069
- Timestamp:
- 12/16/2021 09:53:54 AM (4 years ago)
- File:
-
- 1 edited
-
crisp/trunk/crisp.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
crisp/trunk/crisp.php
r2643954 r2645069 75 75 $http_callback = "http" . (($_SERVER["SERVER_PORT"] == 443) ? "s://" : "://") . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; 76 76 $http_callback = urlencode(wp_nonce_url($http_callback)); 77 $add_to_crisp_link = esc_url ("https://app.crisp.chat/initiate/plugin/aca0046c-356c-428f-8eeb-063014c6a278?payload=$http_callback");77 $add_to_crisp_link = esc_url_raw("https://app.crisp.chat/initiate/plugin/aca0046c-356c-428f-8eeb-063014c6a278?payload=$http_callback"); 78 78 ?> 79 79 … … 91 91 <a class="crisp-button crisp" href="<?php echo esc_url("https://app.crisp.chat/website/" . $website_id) ?>/inbox/"><?php _e("Go to my Inbox", "crisp"); ?></a> 92 92 93 <a class="crisp-button crisp-neutral" href="<?php echo $add_to_crisp_link; ?>"><?php _e("Reconfigure", "crisp"); ?></a>93 <a class="crisp-button crisp-neutral" href="<?php echo esc_url($add_to_crisp_link); ?>"><?php _e("Reconfigure", "crisp"); ?></a> 94 94 95 95 … … 106 106 <h2 class="crisp-title"><?php _e("Connect with Crisp.", "crisp"); ?></h2> 107 107 <p class="crisp-subtitle"><?php _e("This link will redirect you to Crisp and configure your Wordpress. Magic", "crisp"); ?></p> 108 <a class="crisp-button crisp" href="<?php echo $add_to_crisp_link; ?>"><?php _e("Connect with Crisp", "crisp"); ?></a>108 <a class="crisp-button crisp" href="<?php echo esc_url($add_to_crisp_link); ?>"><?php _e("Connect with Crisp", "crisp"); ?></a> 109 109 </div> 110 110 </div>
Note: See TracChangeset
for help on using the changeset viewer.