PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | application/views/email/new_message.php +6 -3 1.2.6 → 1.5.9 View file →
@@ -21,9 +21,9 @@
21 21 <title><?php echo wp_kses_post($subject); ?></title>
22 22 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
23 23 </head>
24 24
25 -<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 48px 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;">
25 +<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;">
26 26 <div id="wrapper" dir="ltr" style="max-width: 600px; width:calc(100% - 30px); background-color: #fff; margin: 0 auto;border: 1px solid #dedede;box-shadow: 0 1px 4px rgb(0 0 0 / 10%);">
27 27
28 28 <!-- header -->
29 29 <div class="header" style="background-color: #2671cb;padding: 48px 48px;color: #FFF;">
@@ -40,12 +40,15 @@
40 40 <?php echo wp_kses_post($data); ?>
41 41 <?php else : ?>
42 42 <?php foreach ($data as $key => $value) : ?>
43 43 <?php if (!empty($value)) : ?>
44 - <?php if (!is_string($value)) continue; ?>
44 + <?php if (!is_string($value) && !is_intval($value)) continue; ?>
45 45 <?php if ($key == 'subject') continue; ?>
46 46 <p>
47 - <strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br />
47 + <strong><?php
48 + // Dynamic field values are registered in the translation catalog separately.
49 + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
50 + echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br />
48 51 </p>
49 52 <?php endif; ?>
50 53 <?php endforeach; ?>
51 54 <?php endif; ?>