Fragen\GitHub_Updater\Messages::show_401_error_message PHP Метод

show_401_error_message() публичный Метод

Usually 401 as private repo with no token set or incorrect user/pass.
    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 
            }
        }
    }