Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix headers already sent error in version 3.7.4 #376

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions php/Blockonomics.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public function calculate_total_paid_fiat($transactions) {
return $rounded_total_paid_fiats;

}



private $api_key;

public function __construct()
{
$this->api_key = $this->get_api_key();
Expand Down Expand Up @@ -134,7 +135,7 @@ public function get_callbacks($crypto)
$response = $this->get($url, $this->api_key);
return $response;
}

public function check_get_callbacks_response_code($response){
$error_str = '';
//TODO: Check This: WE should actually check code for timeout
Expand Down
3 changes: 2 additions & 1 deletion php/form_fields.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<?php

defined( 'ABSPATH' ) || exit;

class FormFields {
public static function init_form_fields($callback_url = '') {
$blockonomics = new Blockonomics;
Expand Down
Loading