|
264 | 264 | </select> |
265 | 265 | <p class="description"> |
266 | 266 | <?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 | + ]); |
279 | 274 | ?> |
280 | 275 | </p> |
281 | 276 | </td> |
|
291 | 286 | </select> |
292 | 287 | <p class="description"> |
293 | 288 | <?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 | + ] |
304 | 297 | ); |
305 | | - echo wp_kses_data($link); |
306 | 298 | ?> |
307 | 299 | </p> |
308 | 300 | </td> |
@@ -375,19 +367,14 @@ class="regular-text" |
375 | 367 | _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'); |
376 | 368 | _e('Learn more about', 'mailgun'); |
377 | 369 |
|
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 | + ] |
389 | 377 | ); |
390 | | - echo wp_kses_data($link); |
391 | 378 | ?> |
392 | 379 | </p> |
393 | 380 | </td> |
|
0 commit comments