← All changes
|
app/Services/Integrations/FluentCrm/CreateTicketAction.php
+8
-7
2.3.0
→
2.4.5
View file →
| @@ -88,21 +88,21 @@ | ||
| 88 | 88 | ], |
| 89 | 89 | 'business_inbox' => [ |
| 90 | 90 | 'type' => 'rest_selector', |
| 91 | 91 | 'option_key' => 'fs_inboxes', |
| 92 | - 'placeholder' => 'Business Inbox', | |
| 93 | - 'label' => 'Default Business Inbox' | |
| 92 | + 'placeholder' => __('Select Business Inbox', 'fluent-support'), | |
| 93 | + 'label' => __('Default Business Inbox', 'fluent-support') | |
| 94 | 94 | ], |
| 95 | 95 | 'default_agent' => [ |
| 96 | 96 | 'type' => 'rest_selector', |
| 97 | 97 | 'option_key' => 'fs_agents', |
| 98 | - 'placeholder' => 'Select Agent (optional)', | |
| 99 | - 'label' => 'Default Assigned Agent (optional)' | |
| 98 | + 'placeholder' => __('Select Agent (optional)', 'fluent-support'), | |
| 99 | + 'label' => __('Default Assigned Agent (optional)', 'fluent-support') | |
| 100 | 100 | ], |
| 101 | 101 | 'priority' => [ |
| 102 | 102 | 'options' => $formattedPriorities, |
| 103 | - 'label' => 'Priority (Admin)', | |
| 104 | - 'placeholder' => 'Select Priority', | |
| 103 | + 'label' => __('Priority (Admin)', 'fluent-support'), | |
| 104 | + 'placeholder' => __('Select Priority', 'fluent-support'), | |
| 105 | 105 | 'type' => 'select' |
| 106 | 106 | ] |
| 107 | 107 | ] |
| 108 | 108 | ]; |
| @@ -121,9 +121,10 @@ | ||
| 121 | 121 | $emailBody = apply_filters('fluent_crm/parse_campaign_email_text', Arr::get($sequence->settings, 'ticket_content'), $subscriber); |
| 122 | 122 | |
| 123 | 123 | $ticketData = [ |
| 124 | 124 | 'title' => substr(sanitize_text_field($emailSubject), 0, 192), |
| 125 | - 'content' => wp_unslash(wp_kses_post($emailBody)), | |
| 125 | + // Funnel settings are stored unslashed, so sanitize only. | |
| 126 | + 'content' => wp_kses_post($emailBody), | |
| 126 | 127 | 'source' => 'fluent-crm' |
| 127 | 128 | ]; |
| 128 | 129 | |
| 129 | 130 | if (!empty($sequence->settings['business_inbox'])) { |