public function show_401_error_message()
{
$_401 = false;
foreach (self::$error_code as $repo) {
if (401 === $repo['code'] && !$_401) {
$_401 = true;
if (!\PAnD::is_admin_notice_active('401-error-1')) {
return;
}
?>
<div data-dismissible="401-error-1" class="error notice is-dismissible">
<p>
<?php
esc_html_e('GitHub Updater Error Code:', 'github-updater');
echo ' ' . $repo['code'];
?>
<br>
<?php
esc_html_e('There is probably an access token or password error on the GitHub Updater Settings page.', 'github-updater');
?>
</p>
</div>
<?php
}
}
}