WP Maintenance - Version 5.1.0

Version Description

  • Fixed bug remove slide
Download this release

Release Info

Developer Florent73
Plugin Icon 128x128 WP Maintenance
Version 5.1.0
Comparing to
See all releases

Code changes from version 5.0.9 to 5.1.0

readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Florent73
3
  Donate link: https://paypal.me/restezconnectes/20/
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
- Tested up to: 5.3
7
- Stable tag: 5.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -70,6 +70,9 @@ You can translate WP Maintenance on [__translate.wordpress.org__](https://transl
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 5.0.9 =
74
  * Fixed bug background color
75
 
3
  Donate link: https://paypal.me/restezconnectes/20/
4
  Tags: Maintenance, Construction, Launch, Coming soon
5
  Requires at least: 3.0
6
+ Tested up to: 5.4
7
+ Stable tag: 5.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
70
 
71
  == Changelog ==
72
 
73
+ = 5.1.0 =
74
+ * Fixed bug remove slide
75
+
76
  = 5.0.9 =
77
  * Fixed bug background color
78
 
views/wp-maintenance-picture.php CHANGED
@@ -28,7 +28,7 @@ if( isset($_POST['action']) && $_POST['action'] == 'update_pictures' && wp_verif
28
 
29
  if( isset($_POST["wpm_maintenance_detete"]) && is_array($_POST["wpm_maintenance_detete"]) ) {
30
  foreach($_POST["wpm_maintenance_detete"] as $delSlideId=>$delSlideTrue) {
31
- if ( array_key_exists($delSlideId, sanitize_text_field($_POST["wp_maintenance_slider"]["slider_image"]) ) ) {
32
  unset($_POST["wp_maintenance_slider"]["slider_image"][$delSlideId]);
33
  unset($_POST["wp_maintenance_slider"]["slider_text"][$delSlideId]);
34
  unset($_POST["wp_maintenance_slider"]["slider_link"][$delSlideId]);
28
 
29
  if( isset($_POST["wpm_maintenance_detete"]) && is_array($_POST["wpm_maintenance_detete"]) ) {
30
  foreach($_POST["wpm_maintenance_detete"] as $delSlideId=>$delSlideTrue) {
31
+ if ( isset($delSlideId) && is_numeric($delSlideId) && $delSlideTrue == 'true' ) {
32
  unset($_POST["wp_maintenance_slider"]["slider_image"][$delSlideId]);
33
  unset($_POST["wp_maintenance_slider"]["slider_text"][$delSlideId]);
34
  unset($_POST["wp_maintenance_slider"]["slider_link"][$delSlideId]);
wp-maintenance.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://madeby.restezconnectes.fr
8
- * Version: 5.0.9
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
@@ -36,7 +36,7 @@ define( 'WPM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
36
  define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
 
39
- if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '5.0.9' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';
5
  * Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
6
  * Author: Florent Maillefaud
7
  * Author URI: https://madeby.restezconnectes.fr
8
+ * Version: 5.1.0
9
  * Text Domain: wp-maintenance
10
  * Domain Path: /languages/
11
  */
36
  define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37
  define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38
 
39
+ if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '5.1.0' ); }
40
 
41
  require WPM_DIR . 'classes/wp-maintenance.php';
42
  require WPM_DIR . 'classes/slider.php';