Version Description
Download this release
Release Info
Developer | cssimmon |
Plugin | Backup and Restore WordPress – WPBackItUp Backup Plugin |
Version | 1.35.0 |
Comparing to | |
See all releases |
Code changes from version 1.34.0 to 1.35.0
- lib/includes/class-backup.php +18 -7
- lib/includes/job_backup.php +1 -3
- readme.txt +6 -1
- wp-backitup.php +2 -2
lib/includes/class-backup.php
CHANGED
@@ -617,15 +617,17 @@ class WPBackItUp_Backup {
|
|
617 |
/**
|
618 |
* Save inventory of folder to database
|
619 |
*
|
620 |
-
* @param
|
621 |
-
* @param
|
622 |
-
* @param
|
623 |
-
* @param
|
624 |
* @param null $exclude
|
625 |
*
|
|
|
|
|
626 |
* @return bool
|
627 |
*/
|
628 |
-
public function save_folder_inventory($batch_insert_size,$job_id,$group_id,$root_path,$exclude=null) {
|
629 |
WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Begin:' .$group_id);
|
630 |
|
631 |
//create a separate log file for inventory
|
@@ -659,9 +661,16 @@ class WPBackItUp_Backup {
|
|
659 |
//Fix the path to use backslash
|
660 |
$file_path = str_replace('\\', "/",$file->getSubPathname());
|
661 |
|
662 |
-
//
|
663 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
664 |
|
|
|
665 |
//TODO: Why does this function not exist for php 5.5
|
666 |
// checking if file name contain illegal character
|
667 |
if (function_exists ('mb_regex_encoding') && function_exists( 'mb_ereg_replace' )) {
|
@@ -672,6 +681,8 @@ class WPBackItUp_Backup {
|
|
672 |
WPBackItUp_Logger::log_error($inventory_logname,__METHOD__,'Filename after removing illegal character: ' . $temp_file_name );
|
673 |
continue;
|
674 |
}
|
|
|
|
|
675 |
}
|
676 |
|
677 |
if ( $file->isFile()) {
|
617 |
/**
|
618 |
* Save inventory of folder to database
|
619 |
*
|
620 |
+
* @param $batch_insert_size
|
621 |
+
* @param $job_id
|
622 |
+
* @param $group_id
|
623 |
+
* @param $root_path
|
624 |
* @param null $exclude
|
625 |
*
|
626 |
+
* @param null $excludePluginsThemes
|
627 |
+
*
|
628 |
* @return bool
|
629 |
*/
|
630 |
+
public function save_folder_inventory($batch_insert_size,$job_id,$group_id,$root_path,$exclude=null,$excludePluginsThemes=false) {
|
631 |
WPBackItUp_Logger::log_info($this->log_name,__METHOD__,'Begin:' .$group_id);
|
632 |
|
633 |
//create a separate log file for inventory
|
661 |
//Fix the path to use backslash
|
662 |
$file_path = str_replace('\\', "/",$file->getSubPathname());
|
663 |
|
664 |
+
//Exclude the theme and plugin folder - global exclude filters too deeply
|
665 |
+
if ($excludePluginsThemes){
|
666 |
+
if (strpos($file->getPath(), WPBACKITUP__PLUGINS_ROOT_PATH) !== false ||
|
667 |
+
strpos($file->getPath(), WPBACKITUP__THEMES_ROOT_PATH) !== false ) {
|
668 |
+
WPBackItUp_Logger::log_info($inventory_logname,__METHOD__,'Excluding Theme and Plugin folder for OTHER: ' . $file_path );
|
669 |
+
continue;
|
670 |
+
}
|
671 |
+
}
|
672 |
|
673 |
+
$file_path = esc_sql($file_path);
|
674 |
//TODO: Why does this function not exist for php 5.5
|
675 |
// checking if file name contain illegal character
|
676 |
if (function_exists ('mb_regex_encoding') && function_exists( 'mb_ereg_replace' )) {
|
681 |
WPBackItUp_Logger::log_error($inventory_logname,__METHOD__,'Filename after removing illegal character: ' . $temp_file_name );
|
682 |
continue;
|
683 |
}
|
684 |
+
|
685 |
+
|
686 |
}
|
687 |
|
688 |
if ( $file->isFile()) {
|
lib/includes/job_backup.php
CHANGED
@@ -457,8 +457,6 @@ if ('task_inventory_others'==$current_task->getTaskName()) {
|
|
457 |
array(
|
458 |
"debug.log",
|
459 |
"backup",
|
460 |
-
"plugins",
|
461 |
-
"themes",
|
462 |
"uploads",
|
463 |
"wpbackitup_backups",
|
464 |
"wpbackitup_restore",
|
@@ -476,7 +474,7 @@ if ('task_inventory_others'==$current_task->getTaskName()) {
|
|
476 |
"sedlex",
|
477 |
));
|
478 |
|
479 |
-
if (! $wp_backup->save_folder_inventory(WPBACKITUP__SQL_BULK_INSERT_SIZE,$current_job->getJobId(),WPBackItUp_Job_Item::OTHERS,WPBACKITUP__CONTENT_PATH,$other_exclude)){
|
480 |
WPBackItUp_Logger::log_error($backup_logname,$log_function,'Other Inventory Error.');
|
481 |
$current_task->setStatus(WPBackItUp_Job_Task::ERROR,127);
|
482 |
|
457 |
array(
|
458 |
"debug.log",
|
459 |
"backup",
|
|
|
|
|
460 |
"uploads",
|
461 |
"wpbackitup_backups",
|
462 |
"wpbackitup_restore",
|
474 |
"sedlex",
|
475 |
));
|
476 |
|
477 |
+
if (! $wp_backup->save_folder_inventory(WPBACKITUP__SQL_BULK_INSERT_SIZE,$current_job->getJobId(),WPBackItUp_Job_Item::OTHERS,WPBACKITUP__CONTENT_PATH,$other_exclude,true)){
|
478 |
WPBackItUp_Logger::log_error($backup_logname,$log_function,'Other Inventory Error.');
|
479 |
$current_task->setStatus(WPBackItUp_Job_Task::ERROR,127);
|
480 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: backup, backups, back up, backup plugin, database backup, multisite backup
|
|
4 |
Requires at least: 3.8.0
|
5 |
Requires PHP: 5.2.4
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 1.
|
8 |
Author URI: https://www.wpbackitup.com
|
9 |
Donate link: https://www.wpbackitup.com
|
10 |
License: GPLv2 or later
|
@@ -217,6 +217,11 @@ Our online documentation and full list of FAQs can be found at [support.wpbackit
|
|
217 |
|
218 |
|
219 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
220 |
= 1.34 =
|
221 |
*Release Date - May 8, 2019
|
222 |
|
4 |
Requires at least: 3.8.0
|
5 |
Requires PHP: 5.2.4
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 1.34.0
|
8 |
Author URI: https://www.wpbackitup.com
|
9 |
Donate link: https://www.wpbackitup.com
|
10 |
License: GPLv2 or later
|
217 |
|
218 |
|
219 |
== Changelog ==
|
220 |
+
= 1.35 =
|
221 |
+
*Release Date - May 14, 2019
|
222 |
+
|
223 |
+
* FIX : Theme & Plugin Language files were not being included in backup
|
224 |
+
|
225 |
= 1.34 =
|
226 |
*Release Date - May 8, 2019
|
227 |
|
wp-backitup.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
7 |
* Author: WPBackItUp
|
8 |
* Author URI: https://www.wpbackitup.com
|
9 |
-
* Version: 1.
|
10 |
* Text Domain: wp-backitup
|
11 |
*
|
12 |
* License: GPL3
|
@@ -32,7 +32,7 @@ define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
|
|
32 |
define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
|
33 |
|
34 |
define( 'WPBACKITUP__MAJOR_VERSION', 1);
|
35 |
-
define( 'WPBACKITUP__MINOR_VERSION',
|
36 |
define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
|
37 |
define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
|
38 |
|
6 |
* Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
7 |
* Author: WPBackItUp
|
8 |
* Author URI: https://www.wpbackitup.com
|
9 |
+
* Version: 1.35
|
10 |
* Text Domain: wp-backitup
|
11 |
*
|
12 |
* License: GPL3
|
32 |
define( 'WPBACKITUP__CLASSNAMESPACE', 'WPBackItUp' );
|
33 |
|
34 |
define( 'WPBACKITUP__MAJOR_VERSION', 1);
|
35 |
+
define( 'WPBACKITUP__MINOR_VERSION', 35);
|
36 |
define( 'WPBACKITUP__MAINTENANCE_VERSION', 0); //Dont forget to update version in header on WP release
|
37 |
define( 'WPBACKITUP__BUILD_VERSION', 0); //Used for hotfix releases
|
38 |
|