From 13722a7aed6e4fef256c6c3514dd5a534b1a7625 Mon Sep 17 00:00:00 2001 From: Daniel Kudwien Date: Mon, 26 Jul 2021 16:31:43 +0200 Subject: [PATCH] Revert "Fixed PHP notice on other admin pages. (#1)" This reverts commit 6d06869309ba6e1deafcec3d6691cb9f75cf4b19. --- includes/class-wc-amazon-payments-advanced-order-admin.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/class-wc-amazon-payments-advanced-order-admin.php b/includes/class-wc-amazon-payments-advanced-order-admin.php index 7a9a8d68..07b56067 100644 --- a/includes/class-wc-amazon-payments-advanced-order-admin.php +++ b/includes/class-wc-amazon-payments-advanced-order-admin.php @@ -167,9 +167,6 @@ public function meta_box() { public function authorization_box() { global $post, $wpdb, $theorder; - if ( empty( $post->ID ) ) { - return; - } $actions = array(); $order_id = absint( $post->ID );