Coming Soon Page and Maintenance Mode for WordPress Block Editor - Version 1.3.1

Version Description

Download this release

Release Info

Developer heldervilela
Plugin Icon 128x128 Coming Soon Page and Maintenance Mode for WordPress Block Editor
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

admin/api/UnlockPage.php CHANGED
@@ -3,7 +3,7 @@
3
  * Unlock Coming Soon Page
4
  *
5
  * @package coming-soon-blocks
6
- * @version 1.3.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
3
  * Unlock Coming Soon Page
4
  *
5
  * @package coming-soon-blocks
6
+ * @version 1.3.1
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
admin/api/UpdatePost.php CHANGED
@@ -3,7 +3,7 @@
3
  * Unlock Coming Soon Page
4
  *
5
  * @package coming-soon-blocks
6
- * @version 1.3.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
3
  * Unlock Coming Soon Page
4
  *
5
  * @package coming-soon-blocks
6
+ * @version 1.3.1
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
admin/config.settings.php CHANGED
@@ -25,7 +25,7 @@ $configArray = [
25
  'plugin' => [
26
  'slug' => 'coming-soon-blocks',
27
  'name' => 'Coming Soon Blocks',
28
- 'version' => '1.3.0',
29
  'PluginURI' => 'https://pixelthrone.com/coming-soon-blocks',
30
  'wp_org_url' => 'https://wordpress.org/support/plugin/coming-soon-blocks',
31
  'wp_review_url' => 'https://wordpress.org/support/plugin/coming-soon-blocks/reviews/',
25
  'plugin' => [
26
  'slug' => 'coming-soon-blocks',
27
  'name' => 'Coming Soon Blocks',
28
+ 'version' => '1.3.1',
29
  'PluginURI' => 'https://pixelthrone.com/coming-soon-blocks',
30
  'wp_org_url' => 'https://wordpress.org/support/plugin/coming-soon-blocks',
31
  'wp_review_url' => 'https://wordpress.org/support/plugin/coming-soon-blocks/reviews/',
coming-soon-blocks.php CHANGED
@@ -6,7 +6,7 @@
6
  * Author: Helder Vilela from Pixelthrone
7
  * Author URI: https://heldervilela.com
8
  * Tags: gutenberg, editor, block, layout, coming Soon, under Construction, maintenance
9
- * Version: 1.3.0
10
  * Text Domain: coming-soon-blocks
11
  * Domain Path: languages
12
  * Tested up to: 5.1
6
  * Author: Helder Vilela from Pixelthrone
7
  * Author URI: https://heldervilela.com
8
  * Tags: gutenberg, editor, block, layout, coming Soon, under Construction, maintenance
9
+ * Version: 1.3.1
10
  * Text Domain: coming-soon-blocks
11
  * Domain Path: languages
12
  * Tested up to: 5.1
lib/Utils.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin utilities functions.
4
  *
5
  * @package coming-soon-blocks
6
- * @version 1.3.0
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
3
  * Plugin utilities functions.
4
  *
5
  * @package coming-soon-blocks
6
+ * @version 1.3.1
7
  * @author Helder Vilela from Pixelthrone
8
  * @license GPL-3.0
9
  */
lib/freemius/assets/img/plugin-icon.png CHANGED
Binary file
lib/freemius/includes/class-freemius.php CHANGED
@@ -2977,6 +2977,10 @@
2977
  * @since 1.1.7.3
2978
  */
2979
  static function _toggle_debug_mode() {
 
 
 
 
2980
  $is_on = fs_request_get( 'is_on', false, 'post' );
2981
 
2982
  if ( fs_request_is_post() && in_array( $is_on, array( 0, 1 ) ) ) {
@@ -3008,8 +3012,16 @@
3008
  * @since 1.2.1.7
3009
  */
3010
  static function _get_db_option() {
 
 
3011
  $option_name = fs_request_get( 'option_name' );
3012
 
 
 
 
 
 
 
3013
  $value = get_option( $option_name );
3014
 
3015
  $result = array(
@@ -3032,7 +3044,16 @@
3032
  * @since 1.2.1.7
3033
  */
3034
  static function _set_db_option() {
3035
- $option_name = fs_request_get( 'option_name' );
 
 
 
 
 
 
 
 
 
3036
  $option_value = fs_request_get( 'option_value' );
3037
 
3038
  if ( ! empty( $option_value ) ) {
2977
  * @since 1.1.7.3
2978
  */
2979
  static function _toggle_debug_mode() {
2980
+ if ( ! is_super_admin() ) {
2981
+ return;
2982
+ }
2983
+
2984
  $is_on = fs_request_get( 'is_on', false, 'post' );
2985
 
2986
  if ( fs_request_is_post() && in_array( $is_on, array( 0, 1 ) ) ) {
3012
  * @since 1.2.1.7
3013
  */
3014
  static function _get_db_option() {
3015
+ check_admin_referer( 'fs_get_db_option' );
3016
+
3017
  $option_name = fs_request_get( 'option_name' );
3018
 
3019
+ if ( ! is_super_admin() ||
3020
+ ! fs_starts_with( $option_name, 'fs_' )
3021
+ ) {
3022
+ self::shoot_ajax_failure();
3023
+ }
3024
+
3025
  $value = get_option( $option_name );
3026
 
3027
  $result = array(
3044
  * @since 1.2.1.7
3045
  */
3046
  static function _set_db_option() {
3047
+ check_admin_referer( 'fs_set_db_option' );
3048
+
3049
+ $option_name = fs_request_get( 'option_name' );
3050
+
3051
+ if ( ! is_super_admin() ||
3052
+ ! fs_starts_with( $option_name, 'fs_' )
3053
+ ) {
3054
+ self::shoot_ajax_failure();
3055
+ }
3056
+
3057
  $option_value = fs_request_get( 'option_value' );
3058
 
3059
  if ( ! empty( $option_value ) ) {
lib/freemius/start.php CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @var string
17
  */
18
- $this_sdk_version = '2.2.3';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
15
  *
16
  * @var string
17
  */
18
+ $this_sdk_version = '2.2.4';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
lib/freemius/templates/debug.php CHANGED
@@ -113,6 +113,7 @@
113
  if (optionName) {
114
  $.post(ajaxurl, {
115
  action : 'fs_get_db_option',
 
116
  option_name: optionName
117
  }, function (response) {
118
  if (response.data.value)
@@ -132,6 +133,7 @@
132
  if (optionValue) {
133
  $.post(ajaxurl, {
134
  action : 'fs_set_db_option',
 
135
  option_name : optionName,
136
  option_value: optionValue
137
  }, function () {
113
  if (optionName) {
114
  $.post(ajaxurl, {
115
  action : 'fs_get_db_option',
116
+ _wpnonce : '<?php echo wp_create_nonce( 'fs_get_db_option' ) ?>',
117
  option_name: optionName
118
  }, function (response) {
119
  if (response.data.value)
133
  if (optionValue) {
134
  $.post(ajaxurl, {
135
  action : 'fs_set_db_option',
136
+ _wpnonce : '<?php echo wp_create_nonce( 'fs_set_db_option' ) ?>',
137
  option_name : optionName,
138
  option_value: optionValue
139
  }, function () {
lib/freemius/templates/powered-by.php CHANGED
@@ -28,4 +28,31 @@
28
  if ( ! defined( 'ABSPATH' ) ) {
29
  exit;
30
  }
 
 
 
 
 
 
 
31
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  if ( ! defined( 'ABSPATH' ) ) {
29
  exit;
30
  }
31
+
32
+ $VARS = isset($VARS) ? $VARS : array();
33
+
34
+ wp_enqueue_script( 'jquery' );
35
+ wp_enqueue_script( 'json2' );
36
+ fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' );
37
+ fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
38
  ?>
39
+
40
+ <div id="pframe"></div>
41
+ <script type="text/javascript">
42
+ (function ($) {
43
+ $(function () {
44
+ var
45
+ base_url = '<?php echo WP_FS__ADDRESS ?>',
46
+ pframe = $('<i' + 'frame id="fs_promo_tab" src="' + base_url + '/promotional-tab/?<?php echo http_build_query($VARS) ?>#' + encodeURIComponent(document.location.href) + '" height="350" width="60" frameborder="0" style=" background: transparent; position: fixed; top: 20%; right: 0;" scrolling="no"></i' + 'frame>')
47
+ .appendTo('#pframe');
48
+
49
+ FS.PostMessage.init(base_url);
50
+ FS.PostMessage.receive('state', function (state) {
51
+ if ('closed' === state)
52
+ $('#fs_promo_tab').css('width', '60px');
53
+ else
54
+ $('#fs_promo_tab').css('width', '345px');
55
+ });
56
+ });
57
+ })(jQuery);
58
+ </script>
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === Coming Soon Page and Maintenance Mode for WordPress Block Editor ===
2
  Author URI: https://heldervilela.com
3
  Plugin URI: https://pixelthrone.com/coming-soon-blocks
4
- Contributors: heldervilela, pixelthrone, freemius
5
  Tags: coming soon, under construction, maintenance, launch page, blocks, gutenberg, easy
6
  Requires at least: 5.0
7
  Tested up to: 5.1
8
  Requires PHP: 5.4
9
- Stable tag: 1.3.0
10
  Text Domain: coming-soon-blocks
11
  License: GPL-3.0
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -188,7 +188,12 @@ If you have a premium plan you can contact me by email or using the form availab
188
  * Submit an issue
189
 
190
  == Changelog ==
191
- = 1.3.0, February 14, 2018 =
 
 
 
 
 
192
  * New: 4 Templates 🎉
193
  * Tweak: Editor UI/UX
194
  * Tweak: Editor blocks loading
@@ -205,4 +210,4 @@ If you have a premium plan you can contact me by email or using the form availab
205
  * Tweak: Responsive
206
 
207
  = 1.0.0, December 7, 2018 =
208
- * Initial release on WordPress.org. Enjoy! 🎉
1
  === Coming Soon Page and Maintenance Mode for WordPress Block Editor ===
2
  Author URI: https://heldervilela.com
3
  Plugin URI: https://pixelthrone.com/coming-soon-blocks
4
+ Contributors: heldervilela, pixelthrone
5
  Tags: coming soon, under construction, maintenance, launch page, blocks, gutenberg, easy
6
  Requires at least: 5.0
7
  Tested up to: 5.1
8
  Requires PHP: 5.4
9
+ Stable tag: 1.3.1
10
  Text Domain: coming-soon-blocks
11
  License: GPL-3.0
12
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
188
  * Submit an issue
189
 
190
  == Changelog ==
191
+ = 1.3.1, March 1, 2019 =
192
+ * Fix: Security Issues
193
+ * Tweak: Editor UI/UX
194
+ * Tweak: Blocks Performance
195
+
196
+ = 1.3.0, February 14, 2019 =
197
  * New: 4 Templates 🎉
198
  * Tweak: Editor UI/UX
199
  * Tweak: Editor blocks loading
210
  * Tweak: Responsive
211
 
212
  = 1.0.0, December 7, 2018 =
213
+ * Initial release on WordPress.org. Enjoy! 🎉