Plugin Directory

Changeset 2928606


Ignore:
Timestamp:
06/20/2023 12:52:23 PM (3 years ago)
Author:
CardGate
Message:

Fix: deprecated dynamic properties

Location:
cardgate
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • cardgate/tags/3.1.25/cardgate.php

    r2846253 r2928606  
    77 * Author: CardGate
    88 * Author URI: https://www.cardgate.com
    9  * Version: 3.1.24
     9 * Version: 3.1.25
    1010 * Text Domain: cardgate
    1111 * Domain Path: /i18n/languages
    1212 * Requires at least: 4.4
    1313 * WC requires at least: 3.0.0
    14  * WC tested up to: 7.2.2
     14 * WC tested up to: 7.8.0
    1515 * License: GPLv3 or later
    1616 */
     
    2121
    2222    protected $_Lang = NULL;
    23 
     23    protected $current_gateway_title = '';
     24    protected $current_gateway_extra_charges = '';
     25    protected $plugin_url;
    2426    /**
    2527     * Initialize plug-in
     
    2830        // Set up localisation.
    2931        $this->load_plugin_textdomain();
    30         $this->current_gateway_title = '';
    31         $this->current_gateway_extra_charges = '';
     32        $this->set_plugin_url();
     33
    3234        add_action('admin_head', array($this,'add_cgform_fields'));
    3335        add_action('woocommerce_cart_calculate_fees', array($this,'calculate_totals'), 10, 1);
     
    819821
    820822    function load_cg_script() {
    821         wp_enqueue_script('wc-add-extra-charges', $this->plugin_url() . '/assets/app.js', array(
     823        wp_enqueue_script('wc-add-extra-charges', $this->plugin_url . '/assets/app.js', array(
    822824            'wc-checkout'
    823825        ), false, true);
    824826    }
    825827
    826     public function plugin_url() {
    827         return $this->plugin_url = untrailingslashit(plugins_url('/', __FILE__));
     828    public function set_plugin_url() {
     829        $this->plugin_url = untrailingslashit(plugins_url('/', __FILE__));
    828830    }
    829831
  • cardgate/tags/3.1.25/readme.txt

    r2906557 r2928606  
    55Requires at least: 4.4
    66Tested up to: 6.2
    7 Stable tag: 3.1.24
     7Stable tag: 3.1.25
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7575
    7676== Changelog ==
     77
     78= 3.1.25 =
     79* Fix: deprecated dynamic properties
    7780
    7881= 3.1.24 =
  • cardgate/trunk/cardgate.php

    r2846253 r2928606  
    77 * Author: CardGate
    88 * Author URI: https://www.cardgate.com
    9  * Version: 3.1.24
     9 * Version: 3.1.25
    1010 * Text Domain: cardgate
    1111 * Domain Path: /i18n/languages
    1212 * Requires at least: 4.4
    1313 * WC requires at least: 3.0.0
    14  * WC tested up to: 7.2.2
     14 * WC tested up to: 7.8.0
    1515 * License: GPLv3 or later
    1616 */
     
    2121
    2222    protected $_Lang = NULL;
    23 
     23    protected $current_gateway_title = '';
     24    protected $current_gateway_extra_charges = '';
     25    protected $plugin_url;
    2426    /**
    2527     * Initialize plug-in
     
    2830        // Set up localisation.
    2931        $this->load_plugin_textdomain();
    30         $this->current_gateway_title = '';
    31         $this->current_gateway_extra_charges = '';
     32        $this->set_plugin_url();
     33
    3234        add_action('admin_head', array($this,'add_cgform_fields'));
    3335        add_action('woocommerce_cart_calculate_fees', array($this,'calculate_totals'), 10, 1);
     
    819821
    820822    function load_cg_script() {
    821         wp_enqueue_script('wc-add-extra-charges', $this->plugin_url() . '/assets/app.js', array(
     823        wp_enqueue_script('wc-add-extra-charges', $this->plugin_url . '/assets/app.js', array(
    822824            'wc-checkout'
    823825        ), false, true);
    824826    }
    825827
    826     public function plugin_url() {
    827         return $this->plugin_url = untrailingslashit(plugins_url('/', __FILE__));
     828    public function set_plugin_url() {
     829        $this->plugin_url = untrailingslashit(plugins_url('/', __FILE__));
    828830    }
    829831
  • cardgate/trunk/readme.txt

    r2906557 r2928606  
    55Requires at least: 4.4
    66Tested up to: 6.2
    7 Stable tag: 3.1.24
     7Stable tag: 3.1.25
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7575
    7676== Changelog ==
     77
     78= 3.1.25 =
     79* Fix: deprecated dynamic properties
    7780
    7881= 3.1.24 =
Note: See TracChangeset for help on using the changeset viewer.