Skip to content

Commit

Permalink
Update frontend-loader.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosonesfun authored Mar 4, 2024
1 parent fb73d51 commit eb1c445
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,12 @@ function feload_settings_page_html() {

if (isset($_GET['settings-updated'])) {
global $wp_settings_errors;
$already_added = false;
foreach ((array) $wp_settings_errors as $error) {
if ($error['code'] == 'feload_message') {
$already_added = true;
break;
}
}

if (!$already_added) {
add_settings_error('feload_messages', 'feload_message', 'Settings Saved', 'updated');
}
}

settings_errors('feload_messages');
Expand Down

0 comments on commit eb1c445

Please sign in to comment.