Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.7.4.2 |
Comparing to | |
See all releases |
Code changes from version 3.7.4.1 to 3.7.4.2
- cmp-advanced.php +53 -2
- inc/render/content.php +2 -1
- inc/render/footer.php +2 -2
- inc/settings/settings-content.php +2 -1
- inc/settings/settings-subscribe.php +2 -1
- js/cmp-advanced.js +1 -0
- js/cmp-advanced.min.js +1 -1
- niteo-cmp.php +20 -9
- readme.txt +8 -1
cmp-advanced.php
CHANGED
@@ -9,7 +9,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
9 |
}
|
10 |
|
11 |
$ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
|
12 |
-
|
13 |
// get all wp pages to array(id->name);
|
14 |
$pages = $this->cmp_get_pages('publish');
|
15 |
|
@@ -121,6 +121,7 @@ if ( isset( $_POST['niteoCS-blacklist-custom'] ) ) {
|
|
121 |
}
|
122 |
}
|
123 |
|
|
|
124 |
// update cmp bypass roles if set
|
125 |
if ( isset( $_POST['niteoCS_roles'] ) ) {
|
126 |
|
@@ -215,6 +216,11 @@ if ( isset( $_POST['niteoCS_custom_login_url'] ) ) {
|
|
215 |
update_option('niteoCS_custom_login_url', sanitize_text_field( $_POST['niteoCS_custom_login_url'] ));
|
216 |
}
|
217 |
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
$niteoCS_page_filter = get_option('niteoCS_page_filter', '0');
|
220 |
$niteoCS_page_whitelist = json_decode(get_option('niteoCS_page_whitelist', '[]'), true);
|
@@ -231,6 +237,7 @@ $bypass_id = get_option('niteoCS_bypass_id', md5( get_home_url() ));
|
|
231 |
$bypass_expire = get_option('niteoCS_bypass_expire', '172800');
|
232 |
$topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
233 |
$topbar_version = get_option('niteoCS_topbar_version', 'cmp-topbar-full');
|
|
|
234 |
|
235 |
$cmp_countdown_notif = get_option('niteoCS_countdown_notification', '1');
|
236 |
$cmp_mode_change_notif = get_option('niteoCS_mode_change_notification', '0');
|
@@ -543,7 +550,6 @@ $mode_change_email = get_option('niteoCS_mode_change_email_address', get_opt
|
|
543 |
</div>
|
544 |
|
545 |
<!-- MISC -->
|
546 |
-
|
547 |
<div class="table-wrapper cmp-misc">
|
548 |
|
549 |
<h3 class="no-icon"><?php _e('CMP Top Bar', 'cmp-coming-soon-maintenance');?></h3>
|
@@ -611,6 +617,51 @@ $mode_change_email = get_option('niteoCS_mode_change_email_address', get_opt
|
|
611 |
|
612 |
</div>
|
613 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
<div class="table-wrapper cmp-misc">
|
615 |
|
616 |
<h3 class="no-icon"><?php _e('Custom External Scripts', 'cmp-coming-soon-maintenance');?></h3>
|
9 |
}
|
10 |
|
11 |
$ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
|
12 |
+
$this->cmp_purge_cache();
|
13 |
// get all wp pages to array(id->name);
|
14 |
$pages = $this->cmp_get_pages('publish');
|
15 |
|
121 |
}
|
122 |
}
|
123 |
|
124 |
+
|
125 |
// update cmp bypass roles if set
|
126 |
if ( isset( $_POST['niteoCS_roles'] ) ) {
|
127 |
|
216 |
update_option('niteoCS_custom_login_url', sanitize_text_field( $_POST['niteoCS_custom_login_url'] ));
|
217 |
}
|
218 |
|
219 |
+
if ( isset( $_POST['niteoCS_wpautop'] ) && is_numeric($_POST['niteoCS_wpautop']) ) {
|
220 |
+
update_option('niteoCS_wpautop', sanitize_text_field( $_POST['niteoCS_wpautop'] ));
|
221 |
+
}
|
222 |
+
|
223 |
+
|
224 |
|
225 |
$niteoCS_page_filter = get_option('niteoCS_page_filter', '0');
|
226 |
$niteoCS_page_whitelist = json_decode(get_option('niteoCS_page_whitelist', '[]'), true);
|
237 |
$bypass_expire = get_option('niteoCS_bypass_expire', '172800');
|
238 |
$topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
239 |
$topbar_version = get_option('niteoCS_topbar_version', 'cmp-topbar-full');
|
240 |
+
$wpautop = get_option('niteoCS_wpautop', '1');
|
241 |
|
242 |
$cmp_countdown_notif = get_option('niteoCS_countdown_notification', '1');
|
243 |
$cmp_mode_change_notif = get_option('niteoCS_mode_change_notification', '0');
|
550 |
</div>
|
551 |
|
552 |
<!-- MISC -->
|
|
|
553 |
<div class="table-wrapper cmp-misc">
|
554 |
|
555 |
<h3 class="no-icon"><?php _e('CMP Top Bar', 'cmp-coming-soon-maintenance');?></h3>
|
617 |
|
618 |
</div>
|
619 |
|
620 |
+
<div class="table-wrapper cmp-misc">
|
621 |
+
|
622 |
+
<h3 class="no-icon"><?php _e('Automatic paragraphs', 'cmp-coming-soon-maintenance');?></h3>
|
623 |
+
<table class="general">
|
624 |
+
<tbody>
|
625 |
+
|
626 |
+
<tr>
|
627 |
+
<th>
|
628 |
+
<fieldset>
|
629 |
+
<legend class="screen-reader-text">
|
630 |
+
<span><?php _e('Automatic paragraphs', 'cmp-coming-soon-maintenance');?></span>
|
631 |
+
</legend>
|
632 |
+
|
633 |
+
<p>
|
634 |
+
<label title="Enabled">
|
635 |
+
<input type="radio" class="cmp-wpautop" name="niteoCS_wpautop" value="1" <?php checked('1', $wpautop);?>><?php _e('Enabled', 'cmp-coming-soon-maintenance');?>
|
636 |
+
</label>
|
637 |
+
</p>
|
638 |
+
|
639 |
+
<p>
|
640 |
+
<label title="Disabled">
|
641 |
+
<input type="radio" class="cmp-wpautop" name="niteoCS_wpautop" value="0" <?php checked('0', $wpautop);?>><?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
|
642 |
+
</label>
|
643 |
+
</p>
|
644 |
+
</fieldset>
|
645 |
+
</th>
|
646 |
+
|
647 |
+
<td>
|
648 |
+
<div class="cmp-wpautop-switch x1">
|
649 |
+
<p style="margin-top:0"><?php _e('Paragraphs will be automatically created in the Content area. You can disable this if you have issues with rendering 3rd party shortcodes in the content.', 'cmp-coming-soon-maintenance');?></p>
|
650 |
+
</div>
|
651 |
+
|
652 |
+
<div class="cmp-wpautop-switch x0">
|
653 |
+
<p style="margin-top:0"><?php _e('Automatic paragraphs are disabled.', 'cmp-coming-soon-maintenance');?></p>
|
654 |
+
</div>
|
655 |
+
|
656 |
+
</td>
|
657 |
+
</tr>
|
658 |
+
<?php echo $this->render_settings->submit(); ?>
|
659 |
+
|
660 |
+
</tbody>
|
661 |
+
</table>
|
662 |
+
|
663 |
+
</div>
|
664 |
+
|
665 |
<div class="table-wrapper cmp-misc">
|
666 |
|
667 |
<h3 class="no-icon"><?php _e('Custom External Scripts', 'cmp-coming-soon-maintenance');?></h3>
|
inc/render/content.php
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
<?php
|
2 |
|
3 |
$html = stripslashes( get_option('niteoCS_body', '') );
|
|
|
4 |
|
5 |
if ( isset($GLOBALS['wp_embed']) ) {
|
6 |
$html = $GLOBALS['wp_embed']->autoembed( $html );
|
7 |
}
|
8 |
|
9 |
-
$html = wpautop( do_shortcode( $html ) );
|
1 |
<?php
|
2 |
|
3 |
$html = stripslashes( get_option('niteoCS_body', '') );
|
4 |
+
$wpautop = get_option('niteoCS_wpautop', '1');
|
5 |
|
6 |
if ( isset($GLOBALS['wp_embed']) ) {
|
7 |
$html = $GLOBALS['wp_embed']->autoembed( $html );
|
8 |
}
|
9 |
|
10 |
+
$html = $wpautop == "1" ? wpautop( do_shortcode( $html ) ) : do_shortcode( $html );
|
inc/render/footer.php
CHANGED
@@ -17,7 +17,7 @@ if ( is_plugin_active( 'simpleanalytics/simple-analytics.php' ) ) {
|
|
17 |
echo '<script src="https://cdn.simpleanalytics.io/hello.js"></script>' . PHP_EOL;
|
18 |
}
|
19 |
|
20 |
-
// Plugin Name:
|
21 |
if ( get_option('niteoCS_subscribe_type', '2') === '3' && defined('MAILOPTIN_VERSION_NUMBER') ) {
|
22 |
|
23 |
$optin_id = get_option('niteoCS_mailoptin_selected');
|
@@ -38,4 +38,4 @@ if ( get_option('niteoCS_subscribe_type', '2') === '3' && defined('MAILOPTIN_VER
|
|
38 |
</script>
|
39 |
<script type='text/javascript' src='<?php echo MAILOPTIN_ASSETS_URL;?>js/mailoptin.min.js?ver=<?php echo MAILOPTIN_VERSION_NUMBER;?>'></script>
|
40 |
<?php
|
41 |
-
}
|
17 |
echo '<script src="https://cdn.simpleanalytics.io/hello.js"></script>' . PHP_EOL;
|
18 |
}
|
19 |
|
20 |
+
// Plugin Name: MailOption
|
21 |
if ( get_option('niteoCS_subscribe_type', '2') === '3' && defined('MAILOPTIN_VERSION_NUMBER') ) {
|
22 |
|
23 |
$optin_id = get_option('niteoCS_mailoptin_selected');
|
38 |
</script>
|
39 |
<script type='text/javascript' src='<?php echo MAILOPTIN_ASSETS_URL;?>js/mailoptin.min.js?ver=<?php echo MAILOPTIN_VERSION_NUMBER;?>'></script>
|
40 |
<?php
|
41 |
+
}
|
inc/settings/settings-content.php
CHANGED
@@ -20,7 +20,8 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
20 |
<th><?php _e('Message', 'cmp-coming-soon-maintenance');?></th>
|
21 |
<td>
|
22 |
<?php wp_editor( $this->niteo_sanitize_html( $niteoCS_body ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
|
23 |
-
<
|
|
|
24 |
</td>
|
25 |
</tr>
|
26 |
|
20 |
<th><?php _e('Message', 'cmp-coming-soon-maintenance');?></th>
|
21 |
<td>
|
22 |
<?php wp_editor( $this->niteo_sanitize_html( $niteoCS_body ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
|
23 |
+
<p class="cmp-hint">* <?php _e('WordPress embeds are fully supported. You can also add any custom HTML. No 3rd party shortcodes are currently supported.', 'cmp-coming-soon-maintenance');?></p>
|
24 |
+
<p class="cmp-hint"><?php printf(__('Having trouble with 3rd-party shortcodes? %1$s', 'cmp-coming-soon-maintenance'), sprintf('<a href="' . admin_url() . 'admin.php?page=cmp-advanced#cmp-misc">%s</a>', __('Disable automatic paragraph function.', 'cmp-coming-soon-maintenance')));?></p>
|
25 |
</td>
|
26 |
</tr>
|
27 |
|
inc/settings/settings-subscribe.php
CHANGED
@@ -275,7 +275,7 @@ $recaptcha_site = get_option('niteoCS_recaptcha_site', '');
|
|
275 |
<fieldset>
|
276 |
<br>
|
277 |
<label for="cmp-recaptcha-status">
|
278 |
-
<input type="checkbox" class="recaptcha-toggle" name="niteoCS_recaptcha_status" id="cmp-recaptcha-status" value="1" <?php checked('1', $recaptcha_status);?>><?php _e('Enable Google
|
279 |
</label>
|
280 |
|
281 |
<div class="recaptcha-toggle-switch x1" style="margin-top:1em">
|
@@ -284,6 +284,7 @@ $recaptcha_site = get_option('niteoCS_recaptcha_site', '');
|
|
284 |
|
285 |
<h4><?php _e('Insert Secret Key', 'cmp-coming-soon-maintenance');?></h4>
|
286 |
<input type="text" name="niteoCS_recaptcha_secret" value="<?php echo esc_attr( $recaptcha_secret ); ?>" class="regular-text code"><br>
|
|
|
287 |
</div>
|
288 |
</fieldset>
|
289 |
|
275 |
<fieldset>
|
276 |
<br>
|
277 |
<label for="cmp-recaptcha-status">
|
278 |
+
<input type="checkbox" class="recaptcha-toggle" name="niteoCS_recaptcha_status" id="cmp-recaptcha-status" value="1" <?php checked('1', $recaptcha_status);?>><?php _e('Enable Google reCAPTCHA v3 Integration', 'cmp-coming-soon-maintenance');?>
|
279 |
</label>
|
280 |
|
281 |
<div class="recaptcha-toggle-switch x1" style="margin-top:1em">
|
284 |
|
285 |
<h4><?php _e('Insert Secret Key', 'cmp-coming-soon-maintenance');?></h4>
|
286 |
<input type="text" name="niteoCS_recaptcha_secret" value="<?php echo esc_attr( $recaptcha_secret ); ?>" class="regular-text code"><br>
|
287 |
+
<p class="cmp-hint"><?php printf( __('Google reCAPTCHA protects you against spam and other types of automated abuse. %1$s', 'cmp-coming-soon-maintenance'), sprintf('<a href="https://www.google.com/recaptcha/intro/v3.html" target="_blank">%s</a>',__('How to set reCAPTCHA v3?', 'cmp-coming-soon-maintenance')));?></p>
|
288 |
</div>
|
289 |
</fieldset>
|
290 |
|
js/cmp-advanced.js
CHANGED
@@ -76,6 +76,7 @@ jQuery(document).ready(function ($) {
|
|
76 |
toggle_settings('cmp-topbar-icon');
|
77 |
toggle_settings('countdown-toggle');
|
78 |
toggle_settings('mode-change-toggle');
|
|
|
79 |
cmp_repeat_fields('head_scripts');
|
80 |
cmp_repeat_fields('footer_scripts');
|
81 |
|
76 |
toggle_settings('cmp-topbar-icon');
|
77 |
toggle_settings('countdown-toggle');
|
78 |
toggle_settings('mode-change-toggle');
|
79 |
+
toggle_settings('cmp-wpautop');
|
80 |
cmp_repeat_fields('head_scripts');
|
81 |
cmp_repeat_fields('footer_scripts');
|
82 |
|
js/cmp-advanced.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(e){var a=document.location.hash.substring(1),t=jQuery("#csoptions").attr("action"),n
|
1 |
+
jQuery(document).ready(function (e) { var a = document.location.hash.substring(1), t = jQuery("#csoptions").attr("action"), n = !1; function r(e) { jQuery("." + e).change(function () { var a = jQuery("." + e + ":checked").val(); a = void 0 === (a = jQuery.isNumeric(a) ? "x" + a : a) ? "x0" : a, jQuery("." + e + "-switch." + a).css("display", "block"), jQuery("." + e + "-switch:not(." + a + ")").css("display", "none") }), jQuery("." + e).first().trigger("change") } function i(a) { jQuery("#add-" + a).click(function (t) { t.preventDefault(); var n = jQuery("#wrapper-" + a), r = jQuery("#wrapper-" + a + " .target-repeater-fields"), i = n.find(".source-repeater-fields").children().clone(); e(i[0]).val(""), e(r).append(i) }), function (a) { jQuery("#wrapper-" + a + " .target-repeater-fields").on("click", "a[href=#delete-" + a + "]", function (a) { a.preventDefault(), e(this).prev().remove(), e(this).remove() }), jQuery("#wrapper-" + a + " .source-repeater-fields").on("click", "a[href=#delete-" + a + "]", function (a) { a.preventDefault(), e(this).prev().val("") }) }(a) } navtab = function (e) { jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"), jQuery('.nav-tab-wrapper .nav-tab[data-tab="' + e + '"]').addClass("nav-tab-active"), jQuery(".cmp-coming-soon-maintenance .table-wrapper." + e).css("display", "block"), jQuery(".cmp-coming-soon-maintenance .table-wrapper-css." + e).css("display", "block"), jQuery(".cmp-coming-soon-maintenance .comingsoon." + e).css("display", "block"), jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(." + e + ")").css("display", "none"), jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(." + e).css("display", "none"), jQuery(".cmp-coming-soon-maintenance .comingsoon:not(." + e + ")").css("display", "none"), "install" == e ? (jQuery(".cmp-coming-soon-maintenance .submit").css("display", "none"), jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action", t)) : (jQuery(".cmp-coming-soon-maintenance .submit").css("display", "block"), jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action", t + "#" + e)) }, "" != a ? navtab(a) : jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display", "none"), window.onhashchange = function () { a = document.location.hash.substring(1), navtab(a) }, jQuery(".cmp-coming-soon-maintenance .nav-tab").click(function (e) { e.preventDefault(), a = jQuery(this).data("tab"), document.location.hash = a }), r("page-whitelist"), r("cmp-bypass"), r("cmp-topbar-icon"), r("countdown-toggle"), r("mode-change-toggle"), r("cmp-wpautop"), i("head_scripts"), i("footer_scripts"), jQuery("#cmp-import-json").on("change", function (a) { jQuery(".import-json-label").attr("data-default", a.target.files[0].name); var t = new FileReader; t.onload = function (e) { jQuery("#cmp-import-input").val(e.target.result) }, t.readAsText(a.target.files[0]), e("#cmp-import-settings").attr("disabled", !1), jQuery(".import-json-label").removeClass("import-fail"), n = !1 }), jQuery("#cmp-export-json").click(function (e) { e.preventDefault(); var a = { action: "cmp_ajax_export_settings", security: jQuery(this).data("security") }; jQuery.post(ajaxurl, a, function (e) { e && jQuery("<iframe />").attr("src", ajaxurl + "?action=cmp_ajax_export_settings&security=" + jQuery("#cmp-export-json").data("security")).appendTo("body").hide() }) }), jQuery("#cmp-import-settings").click(function (e) { if (e.preventDefault(), !0 === n) return !1; var a = jQuery("#cmp-import-input").val(), t = jQuery(".import-json-label"); if (!jQuery("#cmp-import-media").is(":checked")) { var r = new Array("niteoCS_banner_id", "niteoCS_logo_id", "niteoCS_seo_img_id"); (a = jQuery.parseJSON(a)).map(function (e, t) { for (var n in e) r.indexOf(n) > -1 && a.splice(t, 1) }), a = JSON.stringify(a) } var i = { action: "cmp_ajax_import_settings", security: jQuery(this).data("security"), json: a }; n = !0; var s = (new Date).getTime(); t.html('<i class="fa fa-cog fa-spin" aria-hidden="true"></i> importing..'), t.attr("data-default", ""), jQuery.post(ajaxurl, i, function (e) { if (e) { var a = (new Date).getTime() - s, n = jQuery.parseJSON(e); a > 2e3 ? ("success" == n.result ? t.addClass("import-success") : t.addClass("import-fail"), t.html(""), t.attr("data-default", n.message)) : setTimeout(function () { "success" == n.result ? t.addClass("import-success") : t.addClass("import-fail"), t.html(""), t.attr("data-default", n.message) }, 2e3 - a) } }) }), jQuery(".cmp-whitelist-select, .cmp-blacklist, .cmp-user_roles").select2({ width: "calc(100% - 1em)", placeholder: "Click to select.." }), jQuery('select[name="niteoCS_topbar_version"]').select2({ width: "calc(100% - 1em)", minimumResultsForSearch: -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: 3.7.4.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -63,7 +63,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
63 |
|
64 |
// define constants
|
65 |
private function constants() {
|
66 |
-
$this->define( 'CMP_VERSION', '3.7.4.
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -2323,11 +2323,10 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2323 |
* @return string
|
2324 |
*/
|
2325 |
public function cmp_purge_cache() {
|
2326 |
-
|
2327 |
-
|
2328 |
-
|
2329 |
-
|
2330 |
-
}
|
2331 |
|
2332 |
// wp super cache
|
2333 |
if ( function_exists( 'wp_cache_clear_cache' ) ) {
|
@@ -2335,7 +2334,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2335 |
}
|
2336 |
|
2337 |
// endurance cache
|
2338 |
-
if ( class_exists( 'Endurance_Page_Cache' ) )
|
2339 |
$epc = new Endurance_Page_Cache;
|
2340 |
$epc->purge_all();
|
2341 |
}
|
@@ -2358,7 +2357,19 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2358 |
// WP Rocket
|
2359 |
if ( function_exists( 'rocket_clean_domain' ) ) {
|
2360 |
rocket_clean_domain();
|
2361 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2362 |
}
|
2363 |
|
2364 |
/**
|
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: 3.7.4.2
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
63 |
|
64 |
// define constants
|
65 |
private function constants() {
|
66 |
+
$this->define( 'CMP_VERSION', '3.7.4.2' );
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
2323 |
* @return string
|
2324 |
*/
|
2325 |
public function cmp_purge_cache() {
|
2326 |
+
// W3 Total Cache
|
2327 |
+
if ( function_exists('w3tc_flush_all') ) {
|
2328 |
+
w3tc_flush_all();
|
2329 |
+
}
|
|
|
2330 |
|
2331 |
// wp super cache
|
2332 |
if ( function_exists( 'wp_cache_clear_cache' ) ) {
|
2334 |
}
|
2335 |
|
2336 |
// endurance cache
|
2337 |
+
if ( class_exists( 'Endurance_Page_Cache' ) && method_exists('Endurance_Page_Cache','purge_all')) {
|
2338 |
$epc = new Endurance_Page_Cache;
|
2339 |
$epc->purge_all();
|
2340 |
}
|
2357 |
// WP Rocket
|
2358 |
if ( function_exists( 'rocket_clean_domain' ) ) {
|
2359 |
rocket_clean_domain();
|
2360 |
+
}
|
2361 |
+
|
2362 |
+
// wp-optimize
|
2363 |
+
if ( class_exists('WP_Optimize') ) {
|
2364 |
+
if (!class_exists('WP_Optimize_Cache_Commands')) include_once(WPO_PLUGIN_MAIN_PATH . 'cache/class-cache-commands.php');
|
2365 |
+
$cache_commands = new WP_Optimize_Cache_Commands();
|
2366 |
+
$cache_commands->purge_page_cache();
|
2367 |
+
}
|
2368 |
+
|
2369 |
+
// Clear Litespeed cache
|
2370 |
+
if ( class_exists('LiteSpeed_Cache_API') && method_exists( 'LiteSpeed_Cache_API', 'purge_all' ) ) {
|
2371 |
+
LiteSpeed_Cache_API::purge_all();
|
2372 |
+
}
|
2373 |
}
|
2374 |
|
2375 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, landing page, launch page, maintenance mode, under constructi
|
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.4
|
8 |
-
Stable tag: 3.7.4.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -151,6 +151,13 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
151 |
<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>
|
152 |
|
153 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
<h4>CMP 3.7.4.1 - 14-April-20</h4>
|
155 |
<ul>
|
156 |
<li>Resolved issue with missing submit button and double content editor in some cases.</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.4
|
8 |
+
Stable tag: 3.7.4.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
151 |
<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>
|
152 |
|
153 |
== Changelog ==
|
154 |
+
<h4>CMP 3.7.4.2 - 19-April-20</h4>
|
155 |
+
<ul>
|
156 |
+
<li>Added support for WP Optimize cache.</li>
|
157 |
+
<li>New Advanced settings to disable automatic paragraphs - wpautop() - in the content editor.</li>
|
158 |
+
<li>Some minor UI changes - new descriptions and hints added.</li>
|
159 |
+
</ul>
|
160 |
+
|
161 |
<h4>CMP 3.7.4.1 - 14-April-20</h4>
|
162 |
<ul>
|
163 |
<li>Resolved issue with missing submit button and double content editor in some cases.</li>
|