diff --git a/changelog.txt b/changelog.txt index 52ca57401..7b690d879 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ += v2.4.17 - Feb 07, 2022 = + +**Notice** Limited time promotional notice on Super Bowl sale + = v2.4.16 - Dec 23, 2021 = **Fix** Discussion file url was not downloadable for PDF diff --git a/config/app.php b/config/app.php index c6003233b..38a6cae7e 100644 --- a/config/app.php +++ b/config/app.php @@ -3,7 +3,7 @@ return [ 'name' => 'Project Manager', 'slug' => 'pm', - 'version' => '2.4.16', + 'version' => '2.4.17', 'api' => '2', 'db_version' => '2.5', 'text_domain' => 'pm', diff --git a/core/Promotions/Offers.php b/core/Promotions/Offers.php index 938a3f347..f00aa26f2 100644 --- a/core/Promotions/Offers.php +++ b/core/Promotions/Offers.php @@ -1,7 +1,6 @@ status = false; @@ -38,7 +45,6 @@ public function get_offer() { $disabled_key = get_option( 'pm_offer_notice' ); if ( $current_time >= $promo_notice['start_date'] && $current_time <= $promo_notice['end_date'] ) { - $offer->status = $disabled_key == $promo_notice['key'] ? false : true; $offer->link = $promo_notice['action_url']; $offer->key = $promo_notice['key']; $offer->btn_txt = ! empty( $promo_notice['action_title'] ) ? $promo_notice['action_title'] : 'Get Now'; @@ -52,7 +58,9 @@ public function get_offer() { $offer->message[] = sprintf( __( '%s', 'wedevs-project-manager' ), $promo_notice['content'] ); $offer->message = implode( '
', $offer->message ); - return $offer; + if ( $disabled_key != $promo_notice['key'] ) { + $offer->status = true; + } } return $offer; diff --git a/cpm.php b/cpm.php index 96bf329c4..21af4fdab 100644 --- a/cpm.php +++ b/cpm.php @@ -5,7 +5,7 @@ * Description: WordPress Project Management plugin. Manage your projects and tasks, get things done. * Author: weDevs * Author URI: https://wedevs.com - * Version: 2.4.16 + * Version: 2.4.17 * Text Domain: wedevs-project-manager * Domain Path: /languages * License: GPL2 diff --git a/package-lock.json b/package-lock.json index 81ccfac62..fdbd46850 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pmapi", - "version": "2.4.16", + "version": "2.4.17", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ba9b2dfe1..312f93b78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pmapi", - "version": "2.4.16", + "version": "2.4.17", "description": "Front-end package manager for project manager", "main": "index.js", "directories": { diff --git a/readme.txt b/readme.txt index 0ffb34c86..2090d6bb4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: tareq1988, nizamuddinbabu, wedevs, asaquzzaman Donate Link: https://tareq.co/donate/ Tags: project, project manager, project management, web project management, task manager, online collaboration tool, Requires at least: 4.4 or higher -Tested up to: 5.8.2 +Tested up to: 5.9 Requires PHP: 5.6 -Stable tag: 2.4.16 +Stable tag: 2.4.17 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -262,6 +262,10 @@ A. Found any bugs? Please create an [issue](https://github.com/tareq1988/wp-proj == Changelog == += v2.4.17 - Feb 07, 2022 = + +**Notice** Limited time promotional notice on Super Bowl sale + = v2.4.16 - Dec 23, 2021 = **Fix** Discussion file url was not downloadable for PDF