WP Rollback - Version 1.7.1

Version Description

  • Fix: Prevent PHP notice when rolling back a plugin or theme on PHP 7.4.
Download this release

Release Info

Developer dlocc
Plugin Icon 128x128 WP Rollback
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7.0 to 1.7.1

includes/rollback-action.php CHANGED
@@ -11,7 +11,9 @@ if ( ! defined( 'ABSPATH' ) ) {
11
  // Theme rollback.
12
  if ( ! empty( $_GET['theme_file'] ) && file_exists( WP_CONTENT_DIR . '/themes/' . $_GET['theme_file'] ) ) {
13
 
 
14
  // Theme specific vars.
 
15
  $nonce = 'upgrade-theme_' . $_GET['theme_file'];
16
  $url = 'index.php?page=wp-rollback&theme_file=' . $args['theme_file'] . 'action=upgrade-theme';
17
  $version = $_GET['theme_version'];
@@ -29,6 +31,7 @@ if ( ! empty( $_GET['theme_file'] ) && file_exists( WP_CONTENT_DIR . '/themes/'
29
  } elseif ( ! empty( $_GET['plugin_file'] ) && file_exists( WP_PLUGIN_DIR . '/' . $_GET['plugin_file'] ) ) {
30
 
31
  // This is a plugin rollback.
 
32
  $nonce = 'upgrade-plugin_' . $this->plugin_slug;
33
  $url = 'index.php?page=wp-rollback&plugin_file=' . esc_url( $args['plugin_file'] ) . 'action=upgrade-plugin';
34
  $plugin = $this->plugin_slug;
11
  // Theme rollback.
12
  if ( ! empty( $_GET['theme_file'] ) && file_exists( WP_CONTENT_DIR . '/themes/' . $_GET['theme_file'] ) ) {
13
 
14
+
15
  // Theme specific vars.
16
+ $title = $_GET['rollback_name'];
17
  $nonce = 'upgrade-theme_' . $_GET['theme_file'];
18
  $url = 'index.php?page=wp-rollback&theme_file=' . $args['theme_file'] . 'action=upgrade-theme';
19
  $version = $_GET['theme_version'];
31
  } elseif ( ! empty( $_GET['plugin_file'] ) && file_exists( WP_PLUGIN_DIR . '/' . $_GET['plugin_file'] ) ) {
32
 
33
  // This is a plugin rollback.
34
+ $title = $_GET['rollback_name'];
35
  $nonce = 'upgrade-plugin_' . $this->plugin_slug;
36
  $url = 'index.php?page=wp-rollback&plugin_file=' . esc_url( $args['plugin_file'] ) . 'action=upgrade-plugin';
37
  $plugin = $this->plugin_slug;
languages/wp-rollback.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 WP Rollback
2
  # This file is distributed under the same license as the WP Rollback package.
3
  msgid ""
4
  msgstr ""
@@ -7,7 +7,7 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
11
  "Language-Team: Impress.org <info@impress.org>\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -16,7 +16,7 @@ msgstr ""
16
  "X-Poedit-SearchPathExcluded-0: *.js\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
 
19
- #: includes/rollback-action.php:47
20
  msgid "This rollback request is missing a proper query string. Please contact support."
21
  msgstr ""
22
 
1
+ # Copyright (C) 2020 WP Rollback
2
  # This file is distributed under the same license as the WP Rollback package.
3
  msgid ""
4
  msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
11
  "Language-Team: Impress.org <info@impress.org>\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPathExcluded-0: *.js\n"
17
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
 
19
+ #: includes/rollback-action.php:50
20
  msgid "This rollback request is missing a proper query string. Please contact support."
21
  msgstr ""
22
 
package-lock.json CHANGED
@@ -348,9 +348,9 @@
348
  },
349
  "dependencies": {
350
  "graceful-fs": {
351
- "version": "4.1.11",
352
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
353
- "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
354
  "dev": true
355
  }
356
  }
@@ -499,13 +499,20 @@
499
  "graceful-fs": "~1.2.0",
500
  "inherits": "1",
501
  "minimatch": "~0.2.11"
 
 
 
 
 
 
 
 
502
  }
503
  },
504
  "graceful-fs": {
505
- "version": "1.2.3",
506
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz",
507
- "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=",
508
- "dev": true
509
  },
510
  "inherits": {
511
  "version": "1.0.2",
@@ -534,15 +541,6 @@
534
  "sparkles": "^1.0.0"
535
  }
536
  },
537
- "graceful-fs": {
538
- "version": "3.0.11",
539
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz",
540
- "integrity": "sha1-dhPHeKGv6mLyXGMKCG1/Osu92Bg=",
541
- "dev": true,
542
- "requires": {
543
- "natives": "^1.1.0"
544
- }
545
- },
546
  "gulp": {
547
  "version": "3.9.1",
548
  "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz",
@@ -845,9 +843,9 @@
845
  },
846
  "dependencies": {
847
  "graceful-fs": {
848
- "version": "4.1.11",
849
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
850
- "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
851
  "dev": true,
852
  "optional": true
853
  }
@@ -872,9 +870,9 @@
872
  },
873
  "dependencies": {
874
  "graceful-fs": {
875
- "version": "4.1.11",
876
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
877
- "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
878
  "dev": true,
879
  "optional": true
880
  }
@@ -1599,6 +1597,12 @@
1599
  "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=",
1600
  "dev": true
1601
  },
 
 
 
 
 
 
1602
  "readable-stream": {
1603
  "version": "1.0.34",
1604
  "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
348
  },
349
  "dependencies": {
350
  "graceful-fs": {
351
+ "version": "4.2.3",
352
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
353
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
354
  "dev": true
355
  }
356
  }
499
  "graceful-fs": "~1.2.0",
500
  "inherits": "1",
501
  "minimatch": "~0.2.11"
502
+ },
503
+ "dependencies": {
504
+ "graceful-fs": {
505
+ "version": "4.2.3",
506
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
507
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
508
+ "dev": true
509
+ }
510
  }
511
  },
512
  "graceful-fs": {
513
+ "version": "4.2.3",
514
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
515
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ=="
 
516
  },
517
  "inherits": {
518
  "version": "1.0.2",
541
  "sparkles": "^1.0.0"
542
  }
543
  },
 
 
 
 
 
 
 
 
 
544
  "gulp": {
545
  "version": "3.9.1",
546
  "resolved": "https://registry.npmjs.org/gulp/-/gulp-3.9.1.tgz",
843
  },
844
  "dependencies": {
845
  "graceful-fs": {
846
+ "version": "4.2.3",
847
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
848
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
849
  "dev": true,
850
  "optional": true
851
  }
870
  },
871
  "dependencies": {
872
  "graceful-fs": {
873
+ "version": "4.2.3",
874
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
875
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
876
  "dev": true,
877
  "optional": true
878
  }
1597
  "integrity": "sha1-xhJqkK1Pctv1rNskPMN3JP6T/B8=",
1598
  "dev": true
1599
  },
1600
+ "graceful-fs": {
1601
+ "version": "4.2.3",
1602
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
1603
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
1604
+ "dev": true
1605
+ },
1606
  "readable-stream": {
1607
  "version": "1.0.34",
1608
  "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: dlocc, drrobotnik, webdevmattcrom, impressorg, givewp
3
  Tags: rollback, revert, downgrade, version, plugins, themes, version, versions, backup, backups, revision, revisions
4
  Requires at least: 4.8
5
- Donate Link: https://impress.org
6
- Tested up to: 5.4
7
- Stable tag: 1.7.0
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -107,6 +107,9 @@ This is the first version of this plugin. It is a tool for your convenience. Rol
107
 
108
  == Changelog ==
109
 
 
 
 
110
  = 1.7.0 =
111
  * Tweak: Removed the WP Time Capsule staging button and banner.
112
 
2
  Contributors: dlocc, drrobotnik, webdevmattcrom, impressorg, givewp
3
  Tags: rollback, revert, downgrade, version, plugins, themes, version, versions, backup, backups, revision, revisions
4
  Requires at least: 4.8
5
+ Donate Link: https://givewp.com/
6
+ Tested up to: 6.0
7
+ Stable tag: 1.7.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.7.1 =
111
+ * Fix: Prevent PHP notice when rolling back a plugin or theme on PHP 7.4.
112
+
113
  = 1.7.0 =
114
  * Tweak: Removed the WP Time Capsule staging button and banner.
115
 
wp-rollback.php CHANGED
@@ -3,9 +3,9 @@
3
  * Plugin Name: WP Rollback
4
  * Plugin URI: https://impress.org/
5
  * Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
6
- * Author: Impress.org
7
- * Author URI: https://impress.org/
8
- * Version: 1.7.0
9
  * Text Domain: wp-rollback
10
  * Domain Path: /languages
11
  *
3
  * Plugin Name: WP Rollback
4
  * Plugin URI: https://impress.org/
5
  * Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
6
+ * Author: GiveWP.com
7
+ * Author URI: https://givewp.com/
8
+ * Version: 1.7.1
9
  * Text Domain: wp-rollback
10
  * Domain Path: /languages
11
  *