PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 157
Lasso Lite – Affiliate Link Manager & Product Displays v157
157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 116 All 56 releases
← All changes | plugin.php +13 -7 148157 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2 /**
3 3 * Plugin Name: Lasso Lite
4 - * Plugin URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP
5 - * Description: Lasso Lite (formerly SimpleURLs) is a complete URL management system that allows you to create, manage, and track outbound links from your site using custom post types and 301 redirects.
4 + * Plugin URI: https://getlasso.co/?utm_source=lasso-lite&utm_medium=wp&utm_campaign=plugin-header
5 + * Description: Stop pasting long affiliate URLs into every post. Cloak your links, add product displays, and track clicks in WordPress.
6 6 * Author: Lasso
7 - * Author URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP
8 - * Version: 148
7 + * Author URI: https://getlasso.co/?utm_source=lasso-lite&utm_medium=wp&utm_campaign=plugin-header
8 + * Version: 157
9 9
10 10 * Text Domain: simple-urls
11 11 * Domain Path: /languages
12 12
@@ -23,9 +23,9 @@
23 23 use LassoLite\Pages\Hook;
24 24
25 25 // ? ==============================================================================================
26 26 // ? WE SHOULD UPDATE THE VERSION NUMBER HERE AS WELL WHEN RELEASING A NEW VERSION
27 -define( 'LASSO_LITE_VERSION', '148' );
27 +define( 'LASSO_LITE_VERSION', '157' );
28 28 // ? ==============================================================================================
29 29
30 30 function activate_lasso_lite() {
31 31 update_option( Enum::LASSO_LITE_ACTIVE, 1 );
@@ -30,10 +30,16 @@
30 30 function activate_lasso_lite() {
31 31 update_option( Enum::LASSO_LITE_ACTIVE, 1 );
32 32 $license_active = License::get_license_status();
33 33 if ( $license_active === false ) {
34 - Helper::update_option( Constant::LASSO_OPTION_DISMISS_PROMOTIONS, '0' );
35 - Helper::update_option( Constant::LASSO_OPTION_AFFILIATE_PROMOTIONS, '1' );
34 + // Fresh installs show the promo banner; preserve a prior permanent dismiss on re-activation.
35 + if ( false === Helper::get_option( Constant::LASSO_OPTION_DISMISS_PROMOTIONS, false ) ) {
36 + Helper::update_option( Constant::LASSO_OPTION_DISMISS_PROMOTIONS, '0' );
37 + }
38 + // Footer affiliate promo bar uses affiliate_promotions=1 (show); preserve user dismiss (=0).
39 + if ( false === Helper::get_option( Constant::LASSO_OPTION_AFFILIATE_PROMOTIONS, false ) ) {
40 + Helper::update_option( Constant::LASSO_OPTION_AFFILIATE_PROMOTIONS, '1' );
41 + }
36 42 }
37 43 Hook::lasso_register_connect_snippet_rewrite();
38 44 flush_rewrite_rules();
39 45 }