diff --git a/includes/class-wc-amazon-payments-advanced-order-admin.php b/includes/class-wc-amazon-payments-advanced-order-admin.php index 07b56067..7a9a8d68 100644 --- a/includes/class-wc-amazon-payments-advanced-order-admin.php +++ b/includes/class-wc-amazon-payments-advanced-order-admin.php @@ -167,6 +167,9 @@ public function meta_box() { public function authorization_box() { global $post, $wpdb, $theorder; + if ( empty( $post->ID ) ) { + return; + } $actions = array(); $order_id = absint( $post->ID );