Plugin Directory

Changeset 2787604


Ignore:
Timestamp:
09/20/2022 11:49:46 AM (4 years ago)
Author:
omise
Message:

Update to version 4.24.2 from GitHub

Location:
omise
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • omise/tags/4.24.2/CHANGELOG.md

    r2785289 r2787604  
    11# CHANGELOG
     2
     3
     4### [v4.24.2 _(Sep 20, 2022)_](https://github.com/omise/omise-woocommerce/releases/tag/v4.24.2)
     5- Fix the issue of not being able to add new live keys. (PR [#313](https://github.com/omise/omise-woocommerce/pull/313))
    26
    37### [v4.24.1 _(Sep 15, 2022)_](https://github.com/omise/omise-woocommerce/releases/tag/v4.24.1)
  • omise/tags/4.24.2/includes/class-omise-capabilities.php

    r2785289 r2787604  
    3636    public static function retrieve($pKey = null, $sKey = null)
    3737    {
    38         $settings = Omise_Setting::instance();
    39         $publicKey = !$pKey ? $settings->public_key() : $pKey;
    40         $secretKey = !$sKey ? $settings->secret_key() : $sKey;
    41 
    4238        $keys = self::getKeys($pKey, $sKey);
    4339
     
    7975    private static function getKeys($pKey = null, $sKey = null)
    8076    {
     77        // Check if user has submitted a form
     78        if ( ! empty( $_POST ) && isset($_POST['submit']) && $_POST['submit'] === 'Save Settings' ) {
     79            return self::getUserEnteredKeys();
     80        }
     81
    8182        $settings = Omise_Setting::instance();
    82 
    83         // Check if user has submitted a form
    84         if ( ! empty( $_POST ) && isset($_POST['sandbox']) && isset($_POST['test_public_key']) ) {
    85             return self::getUserEnteredKeys();
    86         }
    8783
    8884        return [
  • omise/tags/4.24.2/omise-woocommerce.php

    r2785289 r2787604  
    44 * Plugin URI:  https://www.omise.co/woocommerce
    55 * Description: Omise WooCommerce Gateway Plugin is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Omise Payment Gateway payment method to WooCommerce.
    6  * Version:     4.24.1
     6 * Version:     4.24.2
    77 * Author:      Omise and contributors
    88 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2121     * @var string
    2222     */
    23     public $version = '4.24.1';
     23    public $version = '4.24.2';
    2424
    2525    /**
  • omise/tags/4.24.2/readme.txt

    r2785289 r2787604  
    44Requires at least: 4.3.1
    55Tested up to: 6.0.2
    6 Stable tag: 4.24.1
     6Stable tag: 4.24.2
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3333
    3434== Changelog ==
     35
     36= 4.24.2 =
     37
     38#### 👾 Bug Fixes
     39- Fix the issue of not being able to add new live keys. (PR [#313](https://github.com/omise/omise-woocommerce/pull/313))
    3540
    3641= 4.24.1 =
  • omise/trunk/CHANGELOG.md

    r2785289 r2787604  
    11# CHANGELOG
     2
     3
     4### [v4.24.2 _(Sep 20, 2022)_](https://github.com/omise/omise-woocommerce/releases/tag/v4.24.2)
     5- Fix the issue of not being able to add new live keys. (PR [#313](https://github.com/omise/omise-woocommerce/pull/313))
    26
    37### [v4.24.1 _(Sep 15, 2022)_](https://github.com/omise/omise-woocommerce/releases/tag/v4.24.1)
  • omise/trunk/includes/class-omise-capabilities.php

    r2785289 r2787604  
    3636    public static function retrieve($pKey = null, $sKey = null)
    3737    {
    38         $settings = Omise_Setting::instance();
    39         $publicKey = !$pKey ? $settings->public_key() : $pKey;
    40         $secretKey = !$sKey ? $settings->secret_key() : $sKey;
    41 
    4238        $keys = self::getKeys($pKey, $sKey);
    4339
     
    7975    private static function getKeys($pKey = null, $sKey = null)
    8076    {
     77        // Check if user has submitted a form
     78        if ( ! empty( $_POST ) && isset($_POST['submit']) && $_POST['submit'] === 'Save Settings' ) {
     79            return self::getUserEnteredKeys();
     80        }
     81
    8182        $settings = Omise_Setting::instance();
    82 
    83         // Check if user has submitted a form
    84         if ( ! empty( $_POST ) && isset($_POST['sandbox']) && isset($_POST['test_public_key']) ) {
    85             return self::getUserEnteredKeys();
    86         }
    8783
    8884        return [
  • omise/trunk/omise-woocommerce.php

    r2785289 r2787604  
    44 * Plugin URI:  https://www.omise.co/woocommerce
    55 * Description: Omise WooCommerce Gateway Plugin is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Omise Payment Gateway payment method to WooCommerce.
    6  * Version:     4.24.1
     6 * Version:     4.24.2
    77 * Author:      Omise and contributors
    88 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2121     * @var string
    2222     */
    23     public $version = '4.24.1';
     23    public $version = '4.24.2';
    2424
    2525    /**
  • omise/trunk/readme.txt

    r2785289 r2787604  
    44Requires at least: 4.3.1
    55Tested up to: 6.0.2
    6 Stable tag: 4.24.1
     6Stable tag: 4.24.2
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3333
    3434== Changelog ==
     35
     36= 4.24.2 =
     37
     38#### 👾 Bug Fixes
     39- Fix the issue of not being able to add new live keys. (PR [#313](https://github.com/omise/omise-woocommerce/pull/313))
    3540
    3641= 4.24.1 =
Note: See TracChangeset for help on using the changeset viewer.