Skip to content

Commit

Permalink
fix: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
timjackleus committed Jan 4, 2024
1 parent 7cd2e2a commit c45c94e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.8.0

* Add HPOS compatibility

## 1.7.8

* Version bump, again
Expand Down
10 changes: 0 additions & 10 deletions assets/js/ledyer-checkout-for-woocommerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,6 @@ jQuery(function ($) {
);
},

/**
* Logs messages to the console.
* @param {string} message
*/
log: function (message) {
if (lco_params.logging) {
console.log(message);
}
},

/**
* Fails the Ledyer order.
* @param {string} error_message
Expand Down
6 changes: 5 additions & 1 deletion classes/class-ledyer-lco-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function process_payment_handler( $order_id ) {
return false;
}

if ( $order_id && $ledyer_order ) {
if ( $order && $ledyer_order ) {
$customer_billing = isset( $ledyer_order['customer']['billingAddress'] ) ? $ledyer_order['customer']['billingAddress'] : false;
$customer_shipping = isset( $ledyer_order['customer']['shippingAddress'] ) ? $ledyer_order['customer']['shippingAddress'] : false;

Expand Down Expand Up @@ -588,6 +588,10 @@ public function ledyer_order_shipping_fields( $order ) {
}

public function ledyer_order_save_custom_fields( $order_id ) {
$order = wc_get_order($order_id);
if (!$order) {
return;
}
$order->update_meta_data( '_billing_attention_name', sanitize_text_field( $_POST[ '_billing_attention_name' ] ) );
$order->update_meta_data( '_billing_care_of', sanitize_text_field( $_POST[ '_billing_care_of' ] ) );
$order->update_meta_data( '_shipping_attention_name', sanitize_text_field( $_POST[ '_shipping_attention_name' ] ) );
Expand Down
2 changes: 1 addition & 1 deletion classes/class-ledyer-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Ledyer_Checkout_For_WooCommerce {
*/
public $checkout;

const VERSION = '1.7.8';
const VERSION = '1.8.0';
const SLUG = 'ledyer-checkout-for-woocommerce';
const SETTINGS = 'ledyer_checkout_for_woocommerce_settings';

Expand Down
2 changes: 1 addition & 1 deletion languages/ledyer-checkout-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the same license as the Ledyer Checkout for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Ledyer Checkout for WooCommerce 1.7.8\n"
"Project-Id-Version: Ledyer Checkout for WooCommerce 1.8.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ledyer-checkout-for-woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion ledyer-checkout-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Ledyer Checkout payment gateway for WooCommerce.
* Author: Maksimer/Ledyer
* Author URI: https://www.maksimer.com/
* Version: 1.7.8
* Version: 1.8.0
* Text Domain: ledyer-checkout-for-woocommerce
* Domain Path: /languages
*
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Tested up to: 6.3
Requires PHP: 7.0
WC requires at least: 4.0.0
WC tested up to: 8.2.0
Stable tag: 1.7.8
Stable tag: 1.8.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

0 comments on commit c45c94e

Please sign in to comment.