WP-DBManager - Version 2.78.1

Version Description

N/A

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-DBManager
Version 2.78.1
Comparing to
See all releases

Code changes from version 2.78 to 2.78.1

Files changed (2) hide show
  1. readme.txt +7 -3
  2. wp-dbmanager.php +26 -12
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/site/donation/
4
  Tags: database, manage, wp-dbmanager, manager, table, optimize, backup, queries, query, drop, empty, tables, table, run, repair, cron, schedule, scheduling, automatic
5
- Requires at least: 3.9
6
- Tested up to: 4.4
7
- Stable tag: 2.78
8
 
9
  Manages your WordPress database.
10
 
@@ -33,6 +33,10 @@ Allows you to optimize database, repair database, backup database, restore datab
33
  * To know about the difference between WP-DBManager and WP-DB-backup, checkout __What is the difference between WP-DBManager and WP-DB-Backup?__ in the [FAQ section](https://wordpress.org/plugins/wp-dbmanager/faq/).
34
 
35
  == Changelog ==
 
 
 
 
36
  = Version 2.78 =
37
  * FIXED: escapeshellcmd on Windows. Props Gregory Karpinsky.
38
  * FIXED: Move wp_mkdir_p() up before if check. Props Scott Allen.
2
  Contributors: GamerZ
3
  Donate link: http://lesterchan.net/site/donation/
4
  Tags: database, manage, wp-dbmanager, manager, table, optimize, backup, queries, query, drop, empty, tables, table, run, repair, cron, schedule, scheduling, automatic
5
+ Requires at least: 4.0
6
+ Tested up to: 4.7
7
+ Stable tag: 2.78.1
8
 
9
  Manages your WordPress database.
10
 
33
  * To know about the difference between WP-DBManager and WP-DB-backup, checkout __What is the difference between WP-DBManager and WP-DB-Backup?__ in the [FAQ section](https://wordpress.org/plugins/wp-dbmanager/faq/).
34
 
35
  == Changelog ==
36
+ = Version 2.78.1 =
37
+ * NEW: Bump WordPress 4.7
38
+ * FIXED: Undefined index: repair and repair_period
39
+
40
  = Version 2.78 =
41
  * FIXED: escapeshellcmd on Windows. Props Gregory Karpinsky.
42
  * FIXED: Move wp_mkdir_p() up before if check. Props Scott Allen.
wp-dbmanager.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP-DBManager
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Manages your WordPress database. Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up, optimizing and repairing of database.
6
- Version: 2.78
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-dbmanager
@@ -11,7 +11,7 @@ Text Domain: wp-dbmanager
11
 
12
 
13
  /*
14
- Copyright 2015 Lester Chan (email : lesterchan@gmail.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
@@ -130,22 +130,36 @@ function cron_dbmanager_repair() {
130
  return;
131
  }
132
  function cron_dbmanager_reccurences($schedules) {
133
- $backup_options = get_option('dbmanager_options');
134
- $backup = intval($backup_options['backup'])*intval($backup_options['backup_period']);
135
- $optimize = intval($backup_options['optimize'])*intval($backup_options['optimize_period']);
136
- $repair = intval($backup_options['repair'])*intval($backup_options['repair_period']);
137
- if($backup == 0) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  $backup = 31536000;
139
  }
140
- if($optimize == 0) {
141
  $optimize = 31536000;
142
  }
143
- if($repair == 0) {
144
  $repair = 31536000;
145
  }
146
- $schedules['dbmanager_backup'] = array('interval' => $backup, 'display' => __('WP-DBManager Backup Schedule', 'wp-dbmanager'));
147
- $schedules['dbmanager_optimize'] = array('interval' => $optimize, 'display' => __('WP-DBManager Optimize Schedule', 'wp-dbmanager'));
148
- $schedules['dbmanager_repair'] = array('interval' => $repair, 'display' => __('WP-DBManager Repair Schedule', 'wp-dbmanager'));
149
  return $schedules;
150
  }
151
 
3
  Plugin Name: WP-DBManager
4
  Plugin URI: http://lesterchan.net/portfolio/programming/php/
5
  Description: Manages your WordPress database. Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up, optimizing and repairing of database.
6
+ Version: 2.78.1
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  Text Domain: wp-dbmanager
11
 
12
 
13
  /*
14
+ Copyright 2016 Lester Chan (email : lesterchan@gmail.com)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
130
  return;
131
  }
132
  function cron_dbmanager_reccurences($schedules) {
133
+ $backup_options = get_option( 'dbmanager_options' );
134
+
135
+ if( isset( $backup_options['backup'] ) && isset( $backup_options['backup_period'] ) ) {
136
+ $backup = intval( $backup_options['backup'] ) * intval( $backup_options['backup_period'] );
137
+ } else {
138
+ $backup = 0;
139
+ }
140
+ if( isset( $backup_options['optimize'] ) && isset( $backup_options['optimize_period'] ) ) {
141
+ $optimize = intval( $backup_options['optimize'] ) * intval( $backup_options['optimize_period'] );
142
+ } else {
143
+ $optimize = 0;
144
+ }
145
+ if( isset( $backup_options['repair'] ) && isset( $backup_options['repair_period'] ) ) {
146
+ $repair = intval( $backup_options['repair'] ) * intval( $backup_options['repair_period'] );
147
+ } else {
148
+ $repair = 0;
149
+ }
150
+
151
+ if( $backup === 0 ) {
152
  $backup = 31536000;
153
  }
154
+ if( $optimize === 0 ) {
155
  $optimize = 31536000;
156
  }
157
+ if( $repair === 0 ) {
158
  $repair = 31536000;
159
  }
160
+ $schedules['dbmanager_backup'] = array( 'interval' => $backup, 'display' => __( 'WP-DBManager Backup Schedule', 'wp-dbmanager' ) );
161
+ $schedules['dbmanager_optimize'] = array( 'interval' => $optimize, 'display' => __( 'WP-DBManager Optimize Schedule', 'wp-dbmanager' ) );
162
+ $schedules['dbmanager_repair'] = array( 'interval' => $repair, 'display' => __( 'WP-DBManager Repair Schedule', 'wp-dbmanager' ) );
163
  return $schedules;
164
  }
165