PluginProbe
Taboola / trunk
Taboola vtrunk
1.0.4 1.0.5 1.0.6 1.0.8 2.0.1 2.0.2 2.1.0 2.1.1 2.2.2 2.2.3 3.0.0 3.0.1 3.0.2 3.1.0 trunk 1.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.2 1.0.3
← All changes | settings.php +9 -1 3.0.2trunk View file →
@@ -20,12 +20,20 @@
20 20 <a href="#tab2" class="nav-tab" id="tab2-link">Web Push</a>
21 21 </h2>
22 22
23 23 <?php
24 - if($_SERVER['REQUEST_METHOD'] == 'POST' && count($taboola_errors) == 0){
24 + if($_SERVER['REQUEST_METHOD'] == 'POST' && count($taboola_errors) == 0 && $taboola_save_error == ''){
25 25 echo "<div class='label-success'>";
26 26 echo "<h3 style='color:green;'>Changes applied!</h3>";
27 27 echo "<span>Verify the new changes by browsing to your site.</span>";
28 + echo "</div>";
29 + }
30 +
31 + if($taboola_save_error != ''){
32 + echo "<div class='label-error'>";
33 + echo "<h3 style='color:red;'>Settings were not saved</h3>";
34 + echo "<p>".esc_html($taboola_save_error)."</p>";
35 + echo "<p><b>All values</b> have been reverted to the last successful save.</p>";
28 36 echo "</div>";
29 37 }
30 38
31 39 if(count($taboola_errors) > 0){