| @@ -20,20 +20,12 @@ | ||
| 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 && $taboola_save_error == ''){ | |
| 24 | + if($_SERVER['REQUEST_METHOD'] == 'POST' && count($taboola_errors) == 0){ | |
| 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>"; | |
| 36 | 28 | echo "</div>"; |
| 37 | 29 | } |
| 38 | 30 | |
| 39 | 31 | if(count($taboola_errors) > 0){ |