Skip to content

Commit 6d06869

Browse files
authored
Fixed PHP notice on other admin pages. (#1)
1 parent 73e3c23 commit 6d06869

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/class-wc-amazon-payments-advanced-order-admin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ public function meta_box() {
167167
public function authorization_box() {
168168
global $post, $wpdb, $theorder;
169169

170+
if ( empty( $post->ID ) ) {
171+
return;
172+
}
170173
$actions = array();
171174
$order_id = absint( $post->ID );
172175

0 commit comments

Comments
 (0)