VaultPress::error_notice PHP Method

error_notice() public method

public error_notice ( )
    function error_notice()
    {
        $error_message = $this->get_option('connection_error_message');
        // link to the VaultPress page if we're not already there
        if (!isset($_GET['page']) || 'vaultpress' != $_GET['page']) {
            $error_message .= ' ' . sprintf('<a href="%s">%s</a>', admin_url('admin.php?page=vaultpress'), __('Visit&nbsp;the&nbsp;VaultPress&nbsp;page', 'vaultpress'));
        }
        $screen = get_current_screen();
        if (!in_array($screen->id, array('about', 'about-user', 'about-network')) && !empty($error_message)) {
            $this->ui_message($error_message, 'error');
        }
    }
VaultPress