Skip to content

Commit

Permalink
- Removed var dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x committed Jan 11, 2022
1 parent 5cf01f6 commit 34cb9e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion gateway/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$uploaded = null;
if (isset($_FILES['proof-of-payment'])) {
$uploaded = $plugin->upload_proof_of_payment($order_id, $_FILES['proof-of-payment']);
var_dump($uploaded);

if ($uploaded) {
$plugin->make_onhold($order_id);
}
Expand Down
2 changes: 0 additions & 2 deletions javaabu-woocomerce-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,6 @@ public function upload_proof_of_payment($order_id, $file)
$size_valid = $this->check_file_size($file);
$upload_filepath = $this->get_file_path($file, $order_id);

var_dump($format_valid, $size_valid, $upload_filepath);

if( $format_valid && $size_valid && copy( $file['tmp_name'], $upload_filepath ) ) {
return update_post_meta( $order_id, '_woo_javaabu_wc_uploaded_payment_proof', $upload_filepath );
} else {
Expand Down

0 comments on commit 34cb9e4

Please sign in to comment.