PluginProbe
E2Pdf – Export Pdf Tool for WordPress / 1.32.49
E2Pdf – Export Pdf Tool for WordPress v1.32.49
1.32.49 1.32.48 1.32.43 1.32.40 1.32.34 1.32.32 1.32.31 1.32.26 1.32.22 1.32.23 1.32.18 1.32.17 1.32.15 trunk 1.00.00 1.00.13 1.01.01 1.02.02 1.03.07 1.04.07 1.05.03 1.06.02 1.07.11 1.08.00 1.08.06 All 72 releases
← All changes | classes/view/blocks/notifications.php +7 -7 1.04.071.32.49 View file →
@@ -2,19 +2,19 @@
2 2 if (!defined('ABSPATH')) {
3 3 die('Access denied.');
4 4 }
5 5 ?>
6 -<?php foreach ($this->get_notifications() as $key => $notify) { ?>
6 +<?php foreach ($this->get_notifications($this->get->get('notification')) as $key => $notify) { ?>
7 7 <?php if ($notify['type'] === 'update') { ?>
8 - <div id="message" class="updated e2pdf-notice">
9 - <?php echo $notify['text']; ?>
8 + <div id="message" class="e2pdf-notice notice notice-success is-dismissible">
9 + <p><?php echo wp_kses_post($notify['text']); ?></p>
10 10 </div>
11 11 <?php } elseif ($notify['type'] === 'error') { ?>
12 - <div id="message" class="error e2pdf-notice">
13 - <?php echo $notify['text']; ?>
12 + <div id="message" class="e2pdf-notice notice notice-error is-dismissible">
13 + <p><b><?php echo __('[ERROR]', 'e2pdf'); ?></b> <?php echo wp_kses_post($notify['text']); ?></p>
14 14 </div>
15 15 <?php } elseif ($notify['type'] === 'notice') { ?>
16 - <div id="message" class="notice e2pdf-notice">
17 - <?php echo $notify['text']; ?>
16 + <div id="message" class="e2pdf-notice notice notice-warning is-dismissible">
17 + <p><?php echo wp_kses_post($notify['text']); ?></p>
18 18 </div>
19 19 <?php } ?>
20 20 <?php } ?>