diff --git a/changelog.txt b/changelog.txt index cb1f5d7d0b..cd1c9dd585 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,8 +1,14 @@ +v2.7.0 -> Nov 23, 2017 +--------------------- +- [fix] Remove duplicate help menu and unwanted text +- [fix] Fixed price suggestion when flat rate commission set from admin fixed +- [fix] Fixed xss and csrf issues for some security + v2.6.10 -> Nov 13, 2017 --------------------- - [new] Added dokan CRUD classes - [new] Added help menu on Dokan Admin Dashboard -- [tweak] Dokan Admin settings page redesigned +- [tweak] Dokan Admin settings page redesigned - [tweak] Price suggestion made compatible with Flat commission - [tweak] Admin setup wizard styles updated - [fix] Fixed casting issue in updater class diff --git a/includes/admin/class-admin.php b/includes/admin/class-admin.php index ace4d5c4f2..ff0f765c1e 100755 --- a/includes/admin/class-admin.php +++ b/includes/admin/class-admin.php @@ -33,7 +33,7 @@ function __construct() { add_action( 'admin_notices', array($this, 'update_notice' ) ); - // add_action( 'admin_notices', array($this, 'promotional_offer' ) ); + add_action( 'admin_notices', array($this, 'promotional_offer' ) ); add_action( 'wp_before_admin_bar_render', array( $this, 'dokan_admin_toolbar' ) ); } @@ -52,22 +52,23 @@ public function promotional_offer() { } // check if it has already been dismissed - $offer_key = 'dokan_4th_yr_aniv_44_perc_discount'; + $offer_key = 'dokan_package_offer'; $hide_notice = get_option( $offer_key . '_tracking_notice', 'no' ); if ( 'hide' == $hide_notice ) { return; } - $product_text = ( ! WeDevs_Dokan::init()->is_pro_exists() ) ? __( 'Pro upgrade and all extensions', 'dokan-lite' ) : __( 'all extensions', 'dokan-lite' ); - - $offer_msg = sprintf( __( '

weDevs 4th Year Anniversary Offer

', 'dokan-lite' ) ); - $offer_msg .= sprintf( __( '

Get 44% discount on %2$s also WIN any product from our 4th year anniversary giveaway. Offer ending soon!

', 'dokan-lite' ), 'https://wedevs.com/in/4years', $product_text ); + $offer_msg = sprintf( __( '

+ Dokan is Getting More Affordable: Price Reduction & Changes in Packages +

', 'dokan-lite' ) ); + $offer_msg .= sprintf( __( '

Marketplaces are changing, so is Dokan Multivendor. We are reducing Dokan Pro entry package price and bringing entirely new pricing where you get addons pre-activated for free depending on your package.

', 'dokan-lite' ) ); ?>
+