BackUpWordPress - Version 3.4.1

Version Description

  • Fix a possible PHP Warning in the Schedule Sentence.
Download this release

Release Info

Developer willmot
Plugin Icon 128x128 BackUpWordPress
Version 3.4.1
Comparing to
See all releases

Code changes from version 3.4.0 to 3.4.1

admin/schedule-sentence.php CHANGED
@@ -97,7 +97,8 @@ switch ( $schedule->get_max_backups() ) :
97
 
98
  endswitch;
99
 
100
- $email_msg = $services = '';
 
101
 
102
  foreach ( Services::get_services( $schedule ) as $file => $service ) {
103
 
@@ -105,7 +106,7 @@ foreach ( Services::get_services( $schedule ) as $file => $service ) {
105
  $email_msg = $service->get_error_message();
106
  } elseif ( 'Email' === $service->name ) {
107
  $email_msg = wp_kses_post( $service->display() );
108
- } elseif ( $service->is_service_active() ) {
109
  $services[] = esc_html( $service->display() );
110
  }
111
 
@@ -127,8 +128,8 @@ if ( ! empty( $services ) && count( $services ) > 1 ) {
127
  $sentence .= ' ' . $email_msg;
128
  }
129
 
130
- if ( array_filter( $services ) ) {
131
- $sentence .= ' ' . sprintf( __( 'Send a copy of each backup to %s.', 'backupwordpress' ), implode( ', ', array_filter( $services ) ) );
132
  }
133
 
134
  echo $sentence; ?>
97
 
98
  endswitch;
99
 
100
+ $email_msg = '';
101
+ $services = array();
102
 
103
  foreach ( Services::get_services( $schedule ) as $file => $service ) {
104
 
106
  $email_msg = $service->get_error_message();
107
  } elseif ( 'Email' === $service->name ) {
108
  $email_msg = wp_kses_post( $service->display() );
109
+ } elseif ( $service->is_service_active() && $service->display() ) {
110
  $services[] = esc_html( $service->display() );
111
  }
112
 
128
  $sentence .= ' ' . $email_msg;
129
  }
130
 
131
+ if ( $services ) {
132
+ $sentence .= ' ' . sprintf( __( 'Send a copy of each backup to %s.', 'backupwordpress' ), implode( ', ', $services ) );
133
  }
134
 
135
  echo $sentence; ?>
backupwordpress.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: BackUpWordPress
4
  Plugin URI: http://bwp.hmn.md/
5
  Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. On multisite, you'll find me under the Network Settings menu.
6
- Version: 3.4.0
7
  Author: Human Made Limited
8
  Author URI: http://hmn.md/
9
  License: GPL-2+
3
  Plugin Name: BackUpWordPress
4
  Plugin URI: http://bwp.hmn.md/
5
  Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools &rarr; Backups</strong>. On multisite, you'll find me under the Network Settings menu.
6
+ Version: 3.4.1
7
  Author: Human Made Limited
8
  Author URI: http://hmn.md/
9
  License: GPL-2+
classes/class-plugin.php CHANGED
@@ -6,7 +6,7 @@ namespace HM\BackUpWordPress;
6
  * Class Plugin
7
  */
8
  final class Plugin {
9
- const PLUGIN_VERSION = '3.4.0';
10
 
11
  /**
12
  * @var Plugin The singleton instance.
6
  * Class Plugin
7
  */
8
  final class Plugin {
9
+ const PLUGIN_VERSION = '3.4.1';
10
 
11
  /**
12
  * @var Plugin The singleton instance.
composer.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "name" : "humanmade/backupwordpress",
3
- "description": "Simple automated backups of your WordPress powered website.",
4
- "keywords" : [
5
- "wordpress",
6
- "backup"
7
- ],
8
- "type" : "wordpress-plugin",
9
- "homepage" : "https://github.com/humanmade/backupwordpress",
10
- "license" : "GPL-3.0",
11
- "authors" : [
12
- {
13
- "name" : "Human Made Limited",
14
- "email" : "backupwordpress@hmn.md",
15
- "homepage": "https://bwp.hmn.md/"
16
- }
17
- ],
18
- "support" : {
19
- "issues": "https://github.com/humanmade/backupwordpress/issues"
20
- },
21
- "require": {
22
- "symfony/finder": "~2.6",
23
- "ifsnop/mysqldump-php":"2.*"
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
composer.lock DELETED
@@ -1,120 +0,0 @@
1
- {
2
- "_readme": [
3
- "This file locks the dependencies of your project to a known state",
4
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
- "This file is @generated automatically"
6
- ],
7
- "hash": "a5d481f4e8a2c50cc0c488d199f4c83e",
8
- "content-hash": "77f3dd81e4007d746a29f10fd5dce8af",
9
- "packages": [
10
- {
11
- "name": "ifsnop/mysqldump-php",
12
- "version": "v2.1",
13
- "source": {
14
- "type": "git",
15
- "url": "https://github.com/ifsnop/mysqldump-php.git",
16
- "reference": "701024dd160f15796bed8130c3bdeb26c634785a"
17
- },
18
- "dist": {
19
- "type": "zip",
20
- "url": "https://api.github.com/repos/ifsnop/mysqldump-php/zipball/701024dd160f15796bed8130c3bdeb26c634785a",
21
- "reference": "701024dd160f15796bed8130c3bdeb26c634785a",
22
- "shasum": ""
23
- },
24
- "require": {
25
- "php": ">=5.3.0"
26
- },
27
- "require-dev": {
28
- "phpunit/phpunit": "3.7.*",
29
- "squizlabs/php_codesniffer": "1.*"
30
- },
31
- "type": "library",
32
- "autoload": {
33
- "psr-4": {
34
- "Ifsnop\\": "src/Ifsnop/"
35
- }
36
- },
37
- "notification-url": "https://packagist.org/downloads/",
38
- "license": [
39
- "MIT"
40
- ],
41
- "authors": [
42
- {
43
- "name": "Diego Torres",
44
- "homepage": "https://github.com/ifsnop",
45
- "role": "Developer"
46
- }
47
- ],
48
- "description": "This is a php version of linux's mysqldump in terminal \"$ mysqldump -u username -p...\"",
49
- "homepage": "https://github.com/ifsnop/mysqldump-php",
50
- "keywords": [
51
- "backup",
52
- "database",
53
- "dump",
54
- "export",
55
- "mysql",
56
- "mysqldump",
57
- "pdo",
58
- "sqlite"
59
- ],
60
- "time": "2015-10-19 15:58:11"
61
- },
62
- {
63
- "name": "symfony/finder",
64
- "version": "v2.8.2",
65
- "source": {
66
- "type": "git",
67
- "url": "https://github.com/symfony/finder.git",
68
- "reference": "c90fabdd97e431ee19b6383999cf35334dff27da"
69
- },
70
- "dist": {
71
- "type": "zip",
72
- "url": "https://api.github.com/repos/symfony/finder/zipball/c90fabdd97e431ee19b6383999cf35334dff27da",
73
- "reference": "c90fabdd97e431ee19b6383999cf35334dff27da",
74
- "shasum": ""
75
- },
76
- "require": {
77
- "php": ">=5.3.9"
78
- },
79
- "type": "library",
80
- "extra": {
81
- "branch-alias": {
82
- "dev-master": "2.8-dev"
83
- }
84
- },
85
- "autoload": {
86
- "psr-4": {
87
- "Symfony\\Component\\Finder\\": ""
88
- },
89
- "exclude-from-classmap": [
90
- "/Tests/"
91
- ]
92
- },
93
- "notification-url": "https://packagist.org/downloads/",
94
- "license": [
95
- "MIT"
96
- ],
97
- "authors": [
98
- {
99
- "name": "Fabien Potencier",
100
- "email": "fabien@symfony.com"
101
- },
102
- {
103
- "name": "Symfony Community",
104
- "homepage": "https://symfony.com/contributors"
105
- }
106
- ],
107
- "description": "Symfony Finder Component",
108
- "homepage": "https://symfony.com",
109
- "time": "2016-01-14 08:26:52"
110
- }
111
- ],
112
- "packages-dev": [],
113
- "aliases": [],
114
- "minimum-stability": "stable",
115
- "stability-flags": [],
116
- "prefer-stable": false,
117
- "prefer-lowest": false,
118
- "platform": [],
119
- "platform-dev": []
120
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/backupwordpress.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL-2+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: BackUpWordPress 3.4.0\n"
6
  "Report-Msgid-Bugs-To: backupwordpress@hmn.md\n"
7
- "POT-Creation-Date: 2016-01-20 16:44:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -646,19 +646,19 @@ msgstr ""
646
  msgid "store the last %1$s backups in %2$s"
647
  msgstr ""
648
 
649
- #: admin/schedule-sentence.php:131
650
  msgid "Send a copy of each backup to %s."
651
  msgstr ""
652
 
653
- #: admin/schedule-sentence.php:164
654
  msgid "Backups will be compressed and should be smaller than this."
655
  msgstr ""
656
 
657
- #: admin/schedule-sentence.php:168
658
  msgid "this shouldn't take long&hellip;"
659
  msgstr ""
660
 
661
- #: admin/schedule-sentence.php:168
662
  msgid "calculating the size of your site&hellip;"
663
  msgstr ""
664
 
@@ -1135,7 +1135,7 @@ msgstr ""
1135
  msgid "http://hmn.md/"
1136
  msgstr ""
1137
 
1138
- #: admin/schedule-sentence.php:124
1139
  msgctxt ""
1140
  "1: Backup Type 2: Total size of backup 3: Schedule 4: Number of backups to "
1141
  "store"
2
  # This file is distributed under the GPL-2+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: BackUpWordPress 3.4.1\n"
6
  "Report-Msgid-Bugs-To: backupwordpress@hmn.md\n"
7
+ "POT-Creation-Date: 2016-01-21 12:16:48+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
646
  msgid "store the last %1$s backups in %2$s"
647
  msgstr ""
648
 
649
+ #: admin/schedule-sentence.php:132
650
  msgid "Send a copy of each backup to %s."
651
  msgstr ""
652
 
653
+ #: admin/schedule-sentence.php:165
654
  msgid "Backups will be compressed and should be smaller than this."
655
  msgstr ""
656
 
657
+ #: admin/schedule-sentence.php:169
658
  msgid "this shouldn't take long&hellip;"
659
  msgstr ""
660
 
661
+ #: admin/schedule-sentence.php:169
662
  msgid "calculating the size of your site&hellip;"
663
  msgstr ""
664
 
1135
  msgid "http://hmn.md/"
1136
  msgstr ""
1137
 
1138
+ #: admin/schedule-sentence.php:125
1139
  msgctxt ""
1140
  "1: Backup Type 2: Total size of backup 3: Schedule 4: Number of backups to "
1141
  "store"
readme.md DELETED
@@ -1,52 +0,0 @@
1
- <table width="100%">
2
- <tr>
3
- <td align="left" width="70">
4
- <strong><a href="https://bwp.hmn.md/">BackUpWordPress</a></strong><br />
5
- Simple automated backups of your WordPress powered website.
6
- </td>
7
- <td align="right" width="20%">
8
- <a href="https://travis-ci.org/humanmade/backupwordpress">
9
- <img src="https://travis-ci.org/humanmade/backupwordpress.svg?branch=master" alt="Build status">
10
- </a>
11
- <a href="https://scrutinizer-ci.com/g/humanmade/backupwordpress/">
12
- <img src="https://scrutinizer-ci.com/g/humanmade/backupwordpress/badges/coverage.png?b=master" alt="Coverage via Scrutiniser" />
13
- </a>
14
- </td>
15
- </tr>
16
- <tr>
17
- <td>
18
- A <strong><a href="https://hmn.md/">Human Made</a></strong> project. Maintained by @pdewouters.
19
- </td>
20
- <td align="center">
21
- <img src="https://hmn.md/content/themes/hmnmd/assets/images/hm-logo.svg" width="100" />
22
- </td>
23
- </tr>
24
- </table>
25
-
26
- BackUpWordPress is a well tested, onsite backup plugin for WordPress. It's supports sending backups to cloud services through premium extensions
27
-
28
- Stop using outdated practices, and start making sense.
29
-
30
- ## Requirements
31
- BackUpWordPress requires WordPress 3.9 or newer and requires PHP 5.3+ due to the use of namespaced code.
32
-
33
- ## Installation
34
- Just install like any other plugin
35
-
36
- ## Contributing
37
- Read our [contributing.md](https://github.com/humanmade/backupwordpress/blob/master/CONTRIBUTING.md) file
38
-
39
-
40
- ## License
41
- BackUpWordPress is licensed under the GPLv2 or later.
42
-
43
- ## Credits
44
- Created by Human Made for high volume and large-scale sites. BackUpWordPress is used on over 200,000 sites worldwide.
45
-
46
- Written and maintained by [Tom Willmot](https://github.com/willmot) & [Paul De Wouters](https://github.com/pdwouters). Thanks to all our [contributors](https://github.com/humanmade/backupwordpress/graphs/contributors).
47
-
48
- BackUpWordPress was originally developed by [wpdprx](http://profiles.wordpress.org/users/wpdprx/) before being taken over by Human Made.
49
-
50
- ---
51
-
52
- Interested in joining in on the fun? [Join us, and become human!](https://hmn.md/is/hiring/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: humanmade, willmot, pauldewouters, joehoyle, mattheu, tcrsavage, c
3
  Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, humanmade
4
  Requires at least: 3.9
5
  Tested up to: 4.4
6
- Stable tag: 3.4.0
7
 
8
  Simple automated backups of your WordPress-powered website.
9
 
@@ -118,11 +118,15 @@ You can also tweet <a href="http://twitter.com/humanmadeltd">@humanmadeltd</a> o
118
 
119
  == Upgrade Notice ==
120
 
 
 
 
 
121
  = 3.4 =
122
 
123
- This version introduces a major refactoring code responsible for the files and database backup. We made sure to write
124
  unit tests for the new code, and we have tested it on several user's sites. It fixes a lot of old bugs, and Windows
125
- users should see major improvments to reliablity.
126
 
127
  = 3.3.4 =
128
 
3
  Tags: back up, backup, backups, database, zip, db, files, archive, wp-cli, humanmade
4
  Requires at least: 3.9
5
  Tested up to: 4.4
6
+ Stable tag: 3.4.1
7
 
8
  Simple automated backups of your WordPress-powered website.
9
 
118
 
119
  == Upgrade Notice ==
120
 
121
+ = 3.4.1 =
122
+
123
+ * Fix a possible `PHP Warning` in the Schedule Sentence.
124
+
125
  = 3.4 =
126
 
127
+ * This version introduces a major refactoring of the code responsible for the core backup engine. We made sure to write
128
  unit tests for the new code, and we have tested it on several user's sites. It fixes a lot of old bugs, and Windows
129
+ users should see major improvements to reliability.
130
 
131
  = 3.3.4 =
132
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit135e0a5f58d891c6badc700fa8c4a730::getLoader();
4
 
5
  require_once __DIR__ . '/composer' . '/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit017df1173e3135d1ab8d6c301231ee6b::getLoader();
vendor/composer/LICENSE DELETED
@@ -1,21 +0,0 @@
1
-
2
- Copyright (c) 2015 Nils Adermann, Jordi Boggiano
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is furnished
9
- to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- THE SOFTWARE.
21
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit135e0a5f58d891c6badc700fa8c4a730
6
  {
7
  private static $loader;
8
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit135e0a5f58d891c6badc700fa8c4a730
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit135e0a5f58d891c6badc700fa8c4a730', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit135e0a5f58d891c6badc700fa8c4a730', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
@@ -44,7 +44,7 @@ class ComposerAutoloaderInit135e0a5f58d891c6badc700fa8c4a730
44
  }
45
  }
46
 
47
- function composerRequire135e0a5f58d891c6badc700fa8c4a730($file)
48
  {
49
  require $file;
50
  }
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit017df1173e3135d1ab8d6c301231ee6b
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit017df1173e3135d1ab8d6c301231ee6b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit017df1173e3135d1ab8d6c301231ee6b', 'loadClassLoader'));
25
 
26
  $map = require __DIR__ . '/autoload_namespaces.php';
27
  foreach ($map as $namespace => $path) {
44
  }
45
  }
46
 
47
+ function composerRequire017df1173e3135d1ab8d6c301231ee6b($file)
48
  {
49
  require $file;
50
  }