Skip to content

Commit

Permalink
Merge branch 'release/5.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
widoz committed Dec 9, 2019
2 parents fae343c + 958f20a commit 9a19606
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 19 deletions.
5 changes: 5 additions & 0 deletions assets/css/mollie-components.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
flex-wrap: wrap;
}

.mollie-components-description svg {
display: inline !important;
}

.mollie-components .mollie-component-label {
font-weight: 400;
}
Expand All @@ -22,6 +26,7 @@

.mollie-components .mollie-component iframe {
border-radius: 6px;
margin: 0;
}

.mollie-components div {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/mollie-components.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
== Changelog ==

= 5.4.2 - 09-12-2019 =

* Fix - Mollie crash when WooCommerce plugin is not active
* Fix - Checkout form does not submit the order at first click on Place Order button when payment method is not one which support Mollie Components
* Fix - Minor styles issues for Mollie Components

= 5.4.1 - 05-12-2019 =

* Fix - Mollie Components request multiple times the merchant profile ID via API
Expand Down
8 changes: 0 additions & 8 deletions inc/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ function is_order_received_page ()
}
}

if (!function_exists('wc_date_format'))
{
function wc_date_format ()
{
return apply_filters('woocommerce_date_format', get_option('date_format'));
}
}

if (!function_exists('untrailingslashit'))
{
/**
Expand Down
16 changes: 8 additions & 8 deletions mollie-payments-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mollie Payments for WooCommerce
* Plugin URI: https://www.mollie.com
* Description: Accept payments in WooCommerce with the official Mollie plugin
* Version: 5.4.1
* Version: 5.4.2
* Author: Mollie
* Author URI: https://www.mollie.com
* Requires at least: 3.8
Expand Down Expand Up @@ -197,14 +197,14 @@ function () {
add_action('admin_notices', 'mollie_wc_plugin_inactive');
return;
}
}
);

add_action(
'init',
function () {
load_plugin_textdomain('mollie-payments-for-woocommerce');
Mollie_WC_Plugin::init();
add_action(
'init',
function () {
load_plugin_textdomain('mollie-payments-for-woocommerce');
Mollie_WC_Plugin::init();
}
);
}
);
},
Expand Down
1 change: 1 addition & 0 deletions resources/js/mollie-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ async function submitForm (evt)
if (!isGatewaySelected(gateway)) {
// Let other gateway to submit the form
turnMollieComponentsSubmissionOff($form)
$form.submit()
return
}

Expand Down
2 changes: 1 addition & 1 deletion src/Mollie/WC/Gateway/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -2055,7 +2055,7 @@ protected function mollieComponentsFields()

?>
<div class="mollie-components"></div>
<p>
<p class="mollie-components-description">
<?php
echo $this->lockIcon();
esc_html_e('Secure payments provided by ');
Expand Down
2 changes: 1 addition & 1 deletion src/Mollie/WC/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Mollie_WC_Plugin
{
const PLUGIN_ID = 'mollie-payments-for-woocommerce';
const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
const PLUGIN_VERSION = '5.4.1';
const PLUGIN_VERSION = '5.4.2';

const DB_VERSION = '1.0';
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
Expand Down

0 comments on commit 9a19606

Please sign in to comment.