public function show_403_error_message()
{
$_403 = false;
foreach (self::$error_code as $repo) {
if (403 === $repo['code'] && 'github' === $repo['git'] && !$_403) {
$_403 = true;
if (!\PAnD::is_admin_notice_active('403-error-1')) {
return;
}
?>
<div data-dismissible="403-error-1" class="error notice is-dismissible">
<p>
<?php
esc_html_e('GitHub Updater Error Code:', 'github-updater');
echo ' ' . $repo['code'];
?>
<br>
<?php
printf(esc_html__('GitHub API\'s rate limit will reset in %s minutes.', 'github-updater'), $repo['wait']);
echo '<br>';
printf(esc_html__('It looks like you are running into GitHub API rate limits. Be sure and configure a %sPersonal Access Token%s to avoid this issue.', 'github-updater'), '<a href="https://help.github.com/articles/creating-an-access-token-for-command-line-use/">', '</a>');
?>
</p>
</div>
<?php
}
}
}