Plugin Directory

Changeset 3234883


Ignore:
Timestamp:
02/04/2025 04:20:13 PM (14 months ago)
Author:
railmedia
Message:

v1.5.2

Location:
order-tip-woo
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • order-tip-woo/trunk/admin/controllers/config.class.php

    r3233521 r3234883  
    2222        add_action( 'admin_enqueue_scripts', array( $this, 'scripts' ), 100 );
    2323        add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 2 );
     24        add_action( 'admin_init', array( $this, 'consistent_options' ) );
    2425    }
    2526
     
    6465    }
    6566
     67    /**
     68    * Save default options
     69    * @since 1.5.2
     70    **/
     71    function consistent_options() {
     72        $wc_order_tip_session_type = get_option( 'wc_order_tip_session_type' );
     73        if( ! $wc_order_tip_session_type ) {
     74            update_option( 'wc_order_tip_session_type', '1' );
     75        }
     76    }
     77
    6678}
    6779?>
  • order-tip-woo/trunk/changelog

    r3233521 r3234883  
    11== Changelog ==
     2
     3= 1.5.2 =
     4*Released 4 February 2025*
     5
     6* Added default options. Some options require default values for the correct workings of the plugin. Added *wc_order_tip_session_type* for the time being
    27
    38= 1.5.1 =
     
    712* Other small fixes and compatibility checks
    813
    9 = 1.5.0 = 
     14= 1.5.0 =
    1015*Released 26 October 2024*
    1116
     
    1722* Reports converted to WC specific functions
    1823* Added two custom JS events **wootipplaced** and **wootipremove** that can be listened on - **wootipplaced** runs after the tip is added and **wootipremove** runs after the tip is removed
     24* replaced gmdate() with DateTime object for dates in reports
    1925* Various other fixed and security patches
    2026
  • order-tip-woo/trunk/frontend/controllers/config.class.php

    r3176060 r3234883  
    2121    function __construct() {
    2222        add_action( 'wp_enqueue_scripts', array( $this, 'scripts' ), 100 );
     23        add_action( 'wp', array( $this, 'consistent_options' ) );
    2324    }
    2425
     
    5152    }
    5253
     54    /**
     55    * Save default options
     56    * @since 1.5.2
     57    **/
     58    function consistent_options() {
     59        $wc_order_tip_session_type = get_option( 'wc_order_tip_session_type' );
     60        if( ! $wc_order_tip_session_type ) {
     61            update_option( 'wc_order_tip_session_type', '1' );
     62        }
     63    }
     64
    5365}
    5466?>
  • order-tip-woo/trunk/order-tip-for-woocommerce.php

    r3233521 r3234883  
    44* Plugin URI: https://order-tip-for-woocommerce.tudorache.me/
    55* Description: Adds a form to the cart and checkout pages where customer can add tips to the WooCommerce orders.
    6 * Version: 1.5.1
     6* Version: 1.5.2
    77* Author: Adrian Emil Tudorache
    88* Author URI: https://www.tudorache.me
  • order-tip-woo/trunk/readme.txt

    r3233521 r3234883  
    33Tags: Woocommerce, Ecommerce, Order, Tip, Donation
    44Requires at least: 3.0
    5 Stable tag: 1.5.1
     5Stable tag: 1.5.2
    66Tested up to: 6.7
    77License: GPLv2 or later
     
    9292
    9393== Changelog ==
     94
     95= 1.5.2 =
     96*Released 4 February 2025*
     97
     98* Added default options. Some options require default values for the correct workings of the plugin. Added *wc_order_tip_session_type* for the time being
    9499
    95100= 1.5.1 =
Note: See TracChangeset for help on using the changeset viewer.