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

Version Description

Download this release

Release Info

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

Code changes from version 4.0.9 to 4.0.10

Files changed (3) hide show
  1. inc/settings/settings-content.php +0 -5
  2. niteo-cmp.php +11 -6
  3. readme.txt +6 -1
inc/settings/settings-content.php CHANGED
@@ -34,11 +34,6 @@ if ( function_exists('pll_default_language') || defined('ICL_SITEPRESS_VERSION')
34
  $niteoCS_body = stripslashes( get_option('niteoCS_body_' . $this->cmp_get_default_language(), get_option('niteoCS_body', '')) );
35
  }
36
 
37
-
38
-
39
-
40
-
41
-
42
  ?>
43
 
44
  <div class="table-wrapper content">
34
  $niteoCS_body = stripslashes( get_option('niteoCS_body_' . $this->cmp_get_default_language(), get_option('niteoCS_body', '')) );
35
  }
36
 
 
 
 
 
 
37
  ?>
38
 
39
  <div class="table-wrapper content">
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.0.9
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.0.9' );
66
  $this->define( 'CMP_DEBUG', false );
67
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
68
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -110,7 +110,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
110
  add_action( 'after_setup_theme', array( $this, 'cmp_create_translation'), 10 );
111
  add_action( 'after_setup_theme', array( $this, 'cmp_register_wpml_strings'), 20 );
112
  add_filter( 'upload_mimes', array( $this, 'cmp_allow_font_mimes' ));
113
- add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
114
 
115
  register_activation_hook( __FILE__, array( $this, 'cmp_activate' ) );
116
  register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
@@ -1295,6 +1295,11 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1295
  }
1296
 
1297
  public function cmp_theme_upload($uploadedfile) {
 
 
 
 
 
1298
  // allow zip file to upload
1299
  add_filter('upload_mimes', array( $this, 'cmp_allow_mimes') );
1300
 
@@ -1919,14 +1924,14 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1919
  $mimes['woff'] = 'application/x-font-woff';
1920
  $mimes['woff2'] = 'application/x-font-woff2';
1921
  $mimes['ttf'] = 'application/x-font-ttf';
1922
- $mimes['svg'] = 'image/svg+xml';
1923
  $mimes['eot'] = 'application/vnd.ms-fontobject';
1924
  $mimes['otf'] = 'font/otf';
1925
-
 
 
1926
  return $mimes;
1927
  }
1928
 
1929
-
1930
  public function cmp_admin_notice() {
1931
  global $pagenow;
1932
 
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.0.10
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.0.10' );
66
  $this->define( 'CMP_DEBUG', false );
67
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
68
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
110
  add_action( 'after_setup_theme', array( $this, 'cmp_create_translation'), 10 );
111
  add_action( 'after_setup_theme', array( $this, 'cmp_register_wpml_strings'), 20 );
112
  add_filter( 'upload_mimes', array( $this, 'cmp_allow_font_mimes' ));
113
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
114
 
115
  register_activation_hook( __FILE__, array( $this, 'cmp_activate' ) );
116
  register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
1295
  }
1296
 
1297
  public function cmp_theme_upload($uploadedfile) {
1298
+
1299
+ if ( !current_user_can('administrator') ) {
1300
+ return false;
1301
+ }
1302
+
1303
  // allow zip file to upload
1304
  add_filter('upload_mimes', array( $this, 'cmp_allow_mimes') );
1305
 
1924
  $mimes['woff'] = 'application/x-font-woff';
1925
  $mimes['woff2'] = 'application/x-font-woff2';
1926
  $mimes['ttf'] = 'application/x-font-ttf';
 
1927
  $mimes['eot'] = 'application/vnd.ms-fontobject';
1928
  $mimes['otf'] = 'font/otf';
1929
+ if ( current_user_can('administrator') ) {
1930
+ $mimes['svg'] = 'image/svg+xml';
1931
+ }
1932
  return $mimes;
1933
  }
1934
 
 
1935
  public function cmp_admin_notice() {
1936
  global $pagenow;
1937
 
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: 5.7
8
- Stable tag: 4.0.9
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.0.9 - 13-Apr-21</h4>
164
  <ul>
165
  <li>Orion - New CMP theme available!</li>
5
  Requires at least: 3.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.7
8
+ Stable tag: 4.0.10
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.0.10 - 16-Apr-21</h4>
164
+ <ul>
165
+ <li>Fixed 2 possible security issues.</li>
166
+
167
+ </ul>
168
  <h4>CMP 4.0.9 - 13-Apr-21</h4>
169
  <ul>
170
  <li>Orion - New CMP theme available!</li>