Changeset 3234883
- Timestamp:
- 02/04/2025 04:20:13 PM (14 months ago)
- Location:
- order-tip-woo
- Files:
-
- 1 added
- 5 edited
-
tags/1.5.2 (added)
-
trunk/admin/controllers/config.class.php (modified) (2 diffs)
-
trunk/changelog (modified) (3 diffs)
-
trunk/frontend/controllers/config.class.php (modified) (2 diffs)
-
trunk/order-tip-for-woocommerce.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
order-tip-woo/trunk/admin/controllers/config.class.php
r3233521 r3234883 22 22 add_action( 'admin_enqueue_scripts', array( $this, 'scripts' ), 100 ); 23 23 add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 2 ); 24 add_action( 'admin_init', array( $this, 'consistent_options' ) ); 24 25 } 25 26 … … 64 65 } 65 66 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 66 78 } 67 79 ?> -
order-tip-woo/trunk/changelog
r3233521 r3234883 1 1 == 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 2 7 3 8 = 1.5.1 = … … 7 12 * Other small fixes and compatibility checks 8 13 9 = 1.5.0 = 14 = 1.5.0 = 10 15 *Released 26 October 2024* 11 16 … … 17 22 * Reports converted to WC specific functions 18 23 * 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 19 25 * Various other fixed and security patches 20 26 -
order-tip-woo/trunk/frontend/controllers/config.class.php
r3176060 r3234883 21 21 function __construct() { 22 22 add_action( 'wp_enqueue_scripts', array( $this, 'scripts' ), 100 ); 23 add_action( 'wp', array( $this, 'consistent_options' ) ); 23 24 } 24 25 … … 51 52 } 52 53 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 53 65 } 54 66 ?> -
order-tip-woo/trunk/order-tip-for-woocommerce.php
r3233521 r3234883 4 4 * Plugin URI: https://order-tip-for-woocommerce.tudorache.me/ 5 5 * Description: Adds a form to the cart and checkout pages where customer can add tips to the WooCommerce orders. 6 * Version: 1.5. 16 * Version: 1.5.2 7 7 * Author: Adrian Emil Tudorache 8 8 * Author URI: https://www.tudorache.me -
order-tip-woo/trunk/readme.txt
r3233521 r3234883 3 3 Tags: Woocommerce, Ecommerce, Order, Tip, Donation 4 4 Requires at least: 3.0 5 Stable tag: 1.5. 15 Stable tag: 1.5.2 6 6 Tested up to: 6.7 7 7 License: GPLv2 or later … … 92 92 93 93 == 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 94 99 95 100 = 1.5.1 =
Note: See TracChangeset
for help on using the changeset viewer.