diff --git a/includes/admin/class-wc-postfinancecheckout-admin.php b/includes/admin/class-wc-postfinancecheckout-admin.php index 036b769..d81346c 100644 --- a/includes/admin/class-wc-postfinancecheckout-admin.php +++ b/includes/admin/class-wc-postfinancecheckout-admin.php @@ -352,51 +352,50 @@ public function store_attribute_options( $product, $data_storage ) { //phpcs:ign * Display attribute options edit screen */ public function display_attribute_options_edit() { - if ( ! isset( $_GET['edit'] ) ) {// phpcs:ignore + if ( ! isset( $_GET['edit'] ) ) { return; } else { - $edit = esc_url_raw( wp_unslash( $_GET['edit'] ) );// phpcs:ignore + $edit = absint( $_GET['edit'] ); } - $edit = absint( $edit ); $checked = false; $attribute_options = WC_PostFinanceCheckout_Entity_Attribute_Options::load_by_attribute_id( $edit ); if ( $attribute_options->get_id() > 0 && $attribute_options->get_send() ) { $checked = true; } - echo esc_html( - '
' - ) . esc_html__( 'Should this product attribute be sent to PostFinance Checkout as line item attribute?', 'woo-postfinancecheckout' ) . esc_html( - '
-+ +
+' - ) . esc_html__( 'Should this product attribute be sent to PostFinance Checkout as line item attribute?', 'woo-postfinancecheckout' ) . - esc_html( - '
- ' - ); + ?> ++ +
+