Skip to content

Commit 3b830f9

Browse files
author
Dat Pham
committed
v2.0.0 final
1 parent 1b4d010 commit 3b830f9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/woocommerce-gateway-lemonway/includes/abstracts/abstract-wc-lemonway-payment-gateway.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ public function __construct()
254254
* @param string $value Posted Value.
255255
* @return string
256256
*/
257-
public function validate_wlPass_field( $key, $value ) {
258-
if ($value != $this->wlPass) {
257+
/*public function validate_wlPass_field( $key, $value ) {
258+
if ( $value !== $this->wlPass ) {
259259
$value = hash( 'sha256', $value );
260260
}
261261
262262
return $this->validate_password_field( $key, $value );
263-
}
263+
}*/
264264

265265
// @TODO: min/max amount
266266
// @TODO: admin_options

src/woocommerce-gateway-lemonway/woocommerce-gateway-lemonway.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
define( 'LEMONWAY_MAIN_FILE', __FILE__ );
2525

2626
//Add menu elements
27-
add_action('admin_menu', 'add_admin_menu');
27+
add_action( 'admin_menu', 'add_admin_menu' );
2828
add_action( 'plugins_loaded', 'init_lemonway_gateway_class' );
2929

3030
function init_lemonway_gateway_class()
3131
{
3232
load_plugin_textdomain(LEMONWAY_TEXT_DOMAIN, false, plugin_basename( dirname( LEMONWAY_MAIN_FILE ) ) . '/languages' );
3333

3434
if ( ! class_exists( 'WooCommerce' ) ) {
35-
add_action('admin_notices', 'woocommerce_lemonway_missing_wc_notice');
35+
add_action( 'admin_notices', 'woocommerce_lemonway_missing_wc_notice' );
3636
return false;
3737
}
3838

@@ -73,9 +73,9 @@ private function __construct()
7373

7474
// @TODO: admin notices
7575

76-
add_filter('woocommerce_payment_gateways', array( $this, 'add_lemonway_gateway_class'));
77-
add_filter('plugin_action_links_' . plugin_basename( LEMONWAY_MAIN_FILE ), array( $this, 'plugin_action_links'));
78-
add_filter('plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
76+
add_filter( 'woocommerce_payment_gateways', array( $this, 'add_lemonway_gateway_class' ) );
77+
add_filter( 'plugin_action_links_' . plugin_basename( LEMONWAY_MAIN_FILE ), array( $this, 'plugin_action_links' ) );
78+
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
7979
}
8080

8181
/**
@@ -86,7 +86,7 @@ private function __construct()
8686
*/
8787
public static function get_instance()
8888
{
89-
if (is_null(self::$instance)) {
89+
if ( is_null( self::$instance ) ) {
9090
self::$instance = new self();
9191
}
9292

0 commit comments

Comments
 (0)