Skip to content

Commit 41b8d45

Browse files
Link fixes (#173)
1 parent a9b7148 commit 41b8d45

File tree

1 file changed

+22
-35
lines changed

1 file changed

+22
-35
lines changed

includes/options-page.php

+22-35
Original file line numberDiff line numberDiff line change
@@ -264,18 +264,13 @@
264264
</select>
265265
<p class="description">
266266
<?php
267-
$url = 'https://documentation.mailgun.com/en/latest/user_manual.html#tracking-clicks';
268-
$link = sprintf(
269-
wp_kses(
270-
__('If enabled, Mailgun will track links. <a href="%1$s" target="%2$s">Open Tracking Documentation</a>.', 'mailgun'),
271-
array('a' => array(
272-
'href' => array(),
273-
'target' => array()
274-
)
275-
)
276-
), esc_url($url), '_blank'
277-
);
278-
echo wp_kses_data($link);
267+
$link = __('If enabled, Mailgun will track links. <a href="https://documentation.mailgun.com/en/latest/user_manual.html#tracking-clicks" target="_blank">Open Tracking Documentation</a>.', 'mailgun');
268+
echo wp_kses($link, [
269+
'a' => [
270+
'href' => [],
271+
'target' => []
272+
]
273+
]);
279274
?>
280275
</p>
281276
</td>
@@ -291,18 +286,15 @@
291286
</select>
292287
<p class="description">
293288
<?php
294-
$url = 'https://documentation.mailgun.com/en/latest/user_manual.html#tracking-opens';
295-
$link = sprintf(
296-
wp_kses(
297-
__('If enabled, HTML messages will include an open tracking beacon. <a href="%1$s" target="%2$s">Open Tracking Documentation</a>.', 'mailgun'),
298-
array('a' => array(
299-
'href' => array(),
300-
'target' => array()
301-
)
302-
)
303-
), esc_url($url), '_blank'
289+
echo wp_kses(
290+
__('If enabled, HTML messages will include an open tracking beacon. <a href="https://documentation.mailgun.com/en/latest/user_manual.html#tracking-opens" target="_blank">Open Tracking Documentation</a>.', 'mailgun'),
291+
[
292+
'a' => [
293+
'href' => [],
294+
'target' => []
295+
]
296+
]
304297
);
305-
echo wp_kses_data($link);
306298
?>
307299
</p>
308300
</td>
@@ -375,19 +367,14 @@ class="regular-text"
375367
_e('If added, this tag will exist on every outbound message. Statistics will be populated in the Mailgun Control Panel. Use a comma to define multiple tags. ', 'mailgun');
376368
_e('Learn more about', 'mailgun');
377369

378-
$url1 = 'https://documentation.mailgun.com/en/latest/user_manual.html#tracking-messages';
379-
$url2 = 'https://documentation.mailgun.com/en/latest/user_manual.html#tagging';
380-
$link = sprintf(
381-
wp_kses(
382-
__('<a href="%1$s" target="%3$s">Tracking</a> and <a href="%2$s" target="%3$s">Tagging</a>', 'mailgun'),
383-
array('a' => array(
384-
'href' => array(),
385-
'target' => array()
386-
)
387-
)
388-
), esc_url($url1), esc_url($url2), '_blank'
370+
echo wp_kses(
371+
__('<a href="https://documentation.mailgun.com/en/latest/user_manual.html#tracking-messages" target="_blank">Tracking</a> and <a href="https://documentation.mailgun.com/en/latest/user_manual.html#tagging" target="_blank">Tagging</a>', 'mailgun'),
372+
['a' => [
373+
'href' => [],
374+
'target' => []
375+
]
376+
]
389377
);
390-
echo wp_kses_data($link);
391378
?>
392379
</p>
393380
</td>

0 commit comments

Comments
 (0)