WP Maintenance Mode - Version 2.1.2

Version Description

(04/03/2018) = * fixed a bug that was breaking the plugin after updating from 2.0.9 to 2.1.1

Download this release

Release Info

Developer Designmodo
Plugin Icon 128x128 WP Maintenance Mode
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

Files changed (49) hide show
  1. assets/css/style-admin.css +0 -0
  2. assets/css/style-admin.min.css +0 -0
  3. assets/css/style.css +0 -0
  4. assets/css/style.min.css +0 -0
  5. assets/images/icon-48.png +0 -0
  6. assets/js/jquery.plugin.js +0 -0
  7. assets/js/jquery.validate.js +0 -0
  8. assets/js/scripts-admin.js +0 -0
  9. assets/js/scripts-admin.min.js +0 -0
  10. assets/js/scripts.js +0 -0
  11. assets/js/scripts.min.js +0 -0
  12. includes/classes/wp-maintenance-mode-admin.php +0 -0
  13. includes/classes/wp-maintenance-mode.php +11 -1
  14. includes/functions/helpers.php +0 -0
  15. languages/wp-maintenance-mode-de_DE.mo +0 -0
  16. languages/wp-maintenance-mode-de_DE.po +0 -0
  17. languages/wp-maintenance-mode-en_US.mo +0 -0
  18. languages/wp-maintenance-mode-en_US.po +0 -0
  19. languages/wp-maintenance-mode-es_ES.mo +0 -0
  20. languages/wp-maintenance-mode-es_ES.po +0 -0
  21. languages/wp-maintenance-mode-fa_IR.mo +0 -0
  22. languages/wp-maintenance-mode-fa_IR.po +0 -0
  23. languages/wp-maintenance-mode-fr_FR.mo +0 -0
  24. languages/wp-maintenance-mode-fr_FR.po +0 -0
  25. languages/wp-maintenance-mode-it_IT.mo +0 -0
  26. languages/wp-maintenance-mode-it_IT.po +0 -0
  27. languages/wp-maintenance-mode-nb_NO.mo +0 -0
  28. languages/wp-maintenance-mode-nb_NO.po +0 -0
  29. languages/wp-maintenance-mode-nl_NL.mo +0 -0
  30. languages/wp-maintenance-mode-nl_NL.po +0 -0
  31. languages/wp-maintenance-mode-pl_PL.mo +0 -0
  32. languages/wp-maintenance-mode-pl_PL.po +0 -0
  33. languages/wp-maintenance-mode-pt_BR.mo +0 -0
  34. languages/wp-maintenance-mode-pt_BR.po +0 -0
  35. languages/wp-maintenance-mode-pt_PT.mo +0 -0
  36. languages/wp-maintenance-mode-pt_PT.po +0 -0
  37. languages/wp-maintenance-mode-ro_RO.mo +0 -0
  38. languages/wp-maintenance-mode-ro_RO.po +0 -0
  39. languages/wp-maintenance-mode-ru_RU.mo +0 -0
  40. languages/wp-maintenance-mode-ru_RU.po +0 -0
  41. languages/wp-maintenance-mode-sv_SE.mo +0 -0
  42. languages/wp-maintenance-mode-sv_SE.po +0 -0
  43. readme.md +2 -2
  44. readme.txt +8 -4
  45. views/contact.php +0 -0
  46. views/google-analytics.php +0 -0
  47. views/maintenance.php +0 -0
  48. views/settings.php +1 -0
  49. wp-maintenance-mode.php +1 -1
assets/css/style-admin.css CHANGED
File without changes
assets/css/style-admin.min.css CHANGED
File without changes
assets/css/style.css CHANGED
File without changes
assets/css/style.min.css CHANGED
File without changes
assets/images/icon-48.png CHANGED
File without changes
assets/js/jquery.plugin.js CHANGED
File without changes
assets/js/jquery.validate.js CHANGED
File without changes
assets/js/scripts-admin.js CHANGED
File without changes
assets/js/scripts-admin.min.js CHANGED
File without changes
assets/js/scripts.js CHANGED
File without changes
assets/js/scripts.min.js CHANGED
File without changes
includes/classes/wp-maintenance-mode-admin.php CHANGED
File without changes
includes/classes/wp-maintenance-mode.php CHANGED
@@ -4,7 +4,7 @@ if (!class_exists('WP_Maintenance_Mode')) {
4
 
5
  class WP_Maintenance_Mode {
6
 
7
- const VERSION = '2.1.1';
8
 
9
  protected $plugin_slug = 'wp-maintenance-mode';
10
  protected $plugin_settings;
@@ -413,6 +413,15 @@ if (!class_exists('WP_Maintenance_Mode')) {
413
  update_option('wpmm_settings', $v2_options);
414
  }
415
 
 
 
 
 
 
 
 
 
 
416
  // set current version
417
  update_option('wpmm_version', WP_Maintenance_Mode::VERSION);
418
  }
@@ -582,6 +591,7 @@ if (!class_exists('WP_Maintenance_Mode')) {
582
  *
583
  * @todo Maybe we can find a better home for this method
584
  * @since 2.1.1
 
585
  */
586
  public function add_bot_extras(){
587
  $upload_dir = wp_upload_dir();
4
 
5
  class WP_Maintenance_Mode {
6
 
7
+ const VERSION = '2.1.2';
8
 
9
  protected $plugin_slug = 'wp-maintenance-mode';
10
  protected $plugin_settings;
413
  update_option('wpmm_settings', $v2_options);
414
  }
415
 
416
+ /**
417
+ * Update from <= v2.09 to v^2.1.2
418
+ */
419
+ if(empty($v2_options['bot'])) {
420
+ $v2_options['bot'] = $default_options['bot'];
421
+ // update options
422
+ update_option('wpmm_settings', $v2_options);
423
+ }
424
+
425
  // set current version
426
  update_option('wpmm_version', WP_Maintenance_Mode::VERSION);
427
  }
591
  *
592
  * @todo Maybe we can find a better home for this method
593
  * @since 2.1.1
594
+ * @return string Script tag with all the fixed text strings for the bot.
595
  */
596
  public function add_bot_extras(){
597
  $upload_dir = wp_upload_dir();
includes/functions/helpers.php CHANGED
File without changes
languages/wp-maintenance-mode-de_DE.mo CHANGED
File without changes
languages/wp-maintenance-mode-de_DE.po CHANGED
File without changes
languages/wp-maintenance-mode-en_US.mo CHANGED
File without changes
languages/wp-maintenance-mode-en_US.po CHANGED
File without changes
languages/wp-maintenance-mode-es_ES.mo CHANGED
File without changes
languages/wp-maintenance-mode-es_ES.po CHANGED
File without changes
languages/wp-maintenance-mode-fa_IR.mo CHANGED
File without changes
languages/wp-maintenance-mode-fa_IR.po CHANGED
File without changes
languages/wp-maintenance-mode-fr_FR.mo CHANGED
File without changes
languages/wp-maintenance-mode-fr_FR.po CHANGED
File without changes
languages/wp-maintenance-mode-it_IT.mo CHANGED
File without changes
languages/wp-maintenance-mode-it_IT.po CHANGED
File without changes
languages/wp-maintenance-mode-nb_NO.mo CHANGED
File without changes
languages/wp-maintenance-mode-nb_NO.po CHANGED
File without changes
languages/wp-maintenance-mode-nl_NL.mo CHANGED
File without changes
languages/wp-maintenance-mode-nl_NL.po CHANGED
File without changes
languages/wp-maintenance-mode-pl_PL.mo CHANGED
File without changes
languages/wp-maintenance-mode-pl_PL.po CHANGED
File without changes
languages/wp-maintenance-mode-pt_BR.mo CHANGED
File without changes
languages/wp-maintenance-mode-pt_BR.po CHANGED
File without changes
languages/wp-maintenance-mode-pt_PT.mo CHANGED
File without changes
languages/wp-maintenance-mode-pt_PT.po CHANGED
File without changes
languages/wp-maintenance-mode-ro_RO.mo CHANGED
File without changes
languages/wp-maintenance-mode-ro_RO.po CHANGED
File without changes
languages/wp-maintenance-mode-ru_RU.mo CHANGED
File without changes
languages/wp-maintenance-mode-ru_RU.po CHANGED
File without changes
languages/wp-maintenance-mode-sv_SE.mo CHANGED
File without changes
languages/wp-maintenance-mode-sv_SE.po CHANGED
File without changes
readme.md CHANGED
@@ -1,4 +1,4 @@
1
- # Version 2.1.1
2
 
3
  # WP Maintenance Mode
4
 
@@ -66,7 +66,7 @@ We deleted a bot from list and added a new one.
66
 
67
  ```php
68
  function new_text($text) {
69
- $text = str_replace('http://www.designmodo.com', 'http://designmodo.com', $text);
70
 
71
 
72
  return $text;
1
+ # Version 2.1.2
2
 
3
  # WP Maintenance Mode
4
 
66
 
67
  ```php
68
  function new_text($text) {
69
+ $text = str_replace('https://www.designmodo.com', 'https://designmodo.com', $text);
70
 
71
 
72
  return $text;
readme.txt CHANGED
@@ -7,7 +7,7 @@ Author URI: https://designmodo.com/
7
  Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
8
  Requires at least: 3.5
9
  Tested up to: 4.9.4
10
- Stable tag: 2.1.1
11
  License: GPL-2.0+
12
 
13
  Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page. The new Bot functionality is here!
@@ -55,11 +55,12 @@ Developed by [Designmodo](https://designmodo.com) & [StrictThemes – WordPress
55
 
56
  1. Maintenance Mode Example
57
  2. Maintenance Mode Example #2
58
- 3. Contact Form
59
  4. Dashboard General Settings
60
  5. Dashboard Design Settings
61
  6. Dashboard Modules Settings
62
  7. Dashboard Bot Settings
 
63
 
64
  == Frequently Asked Questions ==
65
 
@@ -74,11 +75,14 @@ If you change your login url, please add the new slug (url: http://domain.com/ne
74
 
75
  == Changelog ==
76
 
77
- = 2.1.1 (1/03/2018) =
 
 
 
78
  * fixed a visual bug with wrap container
79
  * added internationalization support for bot fixed strings
80
  * fixed path for loading data.js required for the bot (thanks @ [George Jipa](https://github.com/georgejipa))
81
- * added wpmm_before_scripts hook, fires just before loading the scripts
82
  * moved data.js to uploads directory (thanks @ [George Jipa](https://github.com/georgejipa))
83
 
84
  = 2.1 (27/02/2018) =
7
  Tags: maintenance mode, admin, administration, unavailable, coming soon, multisite, landing page, under construction, contact form, subscribe, countdown
8
  Requires at least: 3.5
9
  Tested up to: 4.9.4
10
+ Stable tag: 2.1.2
11
  License: GPL-2.0+
12
 
13
  Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page. The new Bot functionality is here!
55
 
56
  1. Maintenance Mode Example
57
  2. Maintenance Mode Example #2
58
+ 3. Bot Example
59
  4. Dashboard General Settings
60
  5. Dashboard Design Settings
61
  6. Dashboard Modules Settings
62
  7. Dashboard Bot Settings
63
+ 8. Contact Form
64
 
65
  == Frequently Asked Questions ==
66
 
75
 
76
  == Changelog ==
77
 
78
+ = 2.1.2 (04/03/2018) =
79
+ * fixed a bug that was breaking the plugin after updating from 2.0.9 to 2.1.1
80
+
81
+ = 2.1.1 (01/03/2018) =
82
  * fixed a visual bug with wrap container
83
  * added internationalization support for bot fixed strings
84
  * fixed path for loading data.js required for the bot (thanks @ [George Jipa](https://github.com/georgejipa))
85
+ * added `wpmm_before_scripts` hook, fires just before loading the scripts
86
  * moved data.js to uploads directory (thanks @ [George Jipa](https://github.com/georgejipa))
87
 
88
  = 2.1 (27/02/2018) =
views/contact.php CHANGED
File without changes
views/google-analytics.php CHANGED
File without changes
views/maintenance.php CHANGED
File without changes
views/settings.php CHANGED
@@ -162,6 +162,7 @@
162
  ?>
163
  <br />
164
  <input type="text" value="<?php echo esc_attr(stripslashes($this->plugin_settings['design']['text_color'])); ?>" data-default-color="<?php echo esc_attr(stripslashes($this->plugin_settings['design']['text_color'])); ?>" name="options[design][text_color]" class="color_picker_trigger" />
 
165
  </td>
166
  </tr>
167
  </tbody>
162
  ?>
163
  <br />
164
  <input type="text" value="<?php echo esc_attr(stripslashes($this->plugin_settings['design']['text_color'])); ?>" data-default-color="<?php echo esc_attr(stripslashes($this->plugin_settings['design']['text_color'])); ?>" name="options[design][text_color]" class="color_picker_trigger" />
165
+ <p><?php __('This text will not be shown when the bot feature is enabled.', $this->plugin_slug); ?></p>
166
  </td>
167
  </tr>
168
  </tbody>
wp-maintenance-mode.php CHANGED
@@ -6,7 +6,7 @@
6
  * Plugin Name: WP Maintenance Mode
7
  * Plugin URI: https://designmodo.com/
8
  * Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
9
- * Version: 2.1.1
10
  * Author: Designmodo
11
  * Author URI: https://designmodo.com/
12
  * Twitter: designmodo
6
  * Plugin Name: WP Maintenance Mode
7
  * Plugin URI: https://designmodo.com/
8
  * Description: Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
9
+ * Version: 2.1.2
10
  * Author: Designmodo
11
  * Author URI: https://designmodo.com/
12
  * Twitter: designmodo