Changeset 2710733
- Timestamp:
- 04/17/2022 12:40:25 PM (4 years ago)
- Location:
- twl-easy-call/trunk/includes
- Files:
-
- 2 edited
-
ajax.php (modified) (1 diff)
-
shortcodes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
twl-easy-call/trunk/includes/ajax.php
r2705185 r2710733 42 42 } catch (Exception $e) { 43 43 // Failed calls will throw 44 echo $e->getMessage();44 echo esc_attr($e->getMessage()); 45 45 } 46 46 -
twl-easy-call/trunk/includes/shortcodes.php
r2705185 r2710733 19 19 20 20 //agent phone number 21 $agent_phone = esc_attr($attr['number']);21 $agent_phone = $attr['number']; 22 22 23 23 $button_label = 'Click To Call'; 24 24 if (isset($attr['label'])) 25 $button_label = esc_attr($attr['label']);25 $button_label = $attr['label']; 26 26 ?> 27 27 <input type="text" class="twilio_call_number"/> 28 <button data-agent="<?php echo $agent_phone; ?>" type="button" class="twilio_call_button"><?php echo $button_label; ?></button>28 <button data-agent="<?php echo esc_attr($agent_phone); ?>" type="button" class="twilio_call_button"><?php echo esc_attr($button_label); ?></button> 29 29 <?php 30 30 endif;
Note: See TracChangeset
for help on using the changeset viewer.