CMP – Coming Soon & Maintenance Plugin by NiteoThemes - Version 4.1.6

Version Description

Download this release

Release Info

Developer niteo
Plugin Icon 128x128 CMP – Coming Soon & Maintenance Plugin by NiteoThemes
Version 4.1.6
Comparing to
See all releases

Code changes from version 4.1.5 to 4.1.6

Files changed (2) hide show
  1. niteo-cmp.php +9 -5
  2. readme.txt +6 -1
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 4.1.5
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -62,7 +62,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
62
 
63
  // define constants
64
  private function constants() {
65
- $this->define( 'CMP_VERSION', '4.1.5' );
66
  $this->define( 'CMP_DEBUG', FALSE );
67
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
68
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -370,13 +370,17 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
370
  public function cmp_get_translated_id( $id ) {
371
 
372
  if ( function_exists('pll_get_post') ) {
373
- $id = pll_get_post( $id );
374
 
375
  } else if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
376
- $id = apply_filters( 'wpml_object_id', $id );
 
 
 
 
377
  }
378
 
379
- return $id;
380
  }
381
 
382
  /**
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 4.1.6
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
62
 
63
  // define constants
64
  private function constants() {
65
+ $this->define( 'CMP_VERSION', '4.1.6' );
66
  $this->define( 'CMP_DEBUG', FALSE );
67
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
68
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
370
  public function cmp_get_translated_id( $id ) {
371
 
372
  if ( function_exists('pll_get_post') ) {
373
+ $updated_id = pll_get_post( $id );
374
 
375
  } else if ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
376
+ $updated_id = apply_filters( 'wpml_object_id', $id );
377
+ }
378
+
379
+ if (!$updated_id) {
380
+ return $id;
381
  }
382
 
383
+ return $updated_id;
384
  }
385
 
386
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, coming soon page, launch page, maintenance mode, under constr
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
  Tested up to: 6.1
8
- Stable tag: 4.1.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -160,6 +160,11 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
160
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
161
 
162
  == Changelog ==
 
 
 
 
 
163
  <h4>CMP 4.1.5 - 04-Nov-22</h4>
164
  <ul>
165
  <li>Compatibility check with WP 6.1</li>
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
  Tested up to: 6.1
8
+ Stable tag: 4.1.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
160
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
161
 
162
  == Changelog ==
163
+ <h4>CMP 4.1.6 - 13-Dec-22</h4>
164
+ <ul>
165
+ <li>Updated compatibility with translaction plugins./li>
166
+ </ul>
167
+
168
  <h4>CMP 4.1.5 - 04-Nov-22</h4>
169
  <ul>
170
  <li>Compatibility check with WP 6.1</li>