WP Rollback - Version 1.5.1

Version Description

  • Tweak: Added additional information about the importance of Staging and Backups and links to our preferred plugin.
Download this release

Release Info

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

Code changes from version 1.5 to 1.5.1

assets/css/wp-rollback.css CHANGED
@@ -74,7 +74,9 @@
74
  clear: left;
75
  padding: 8px 0;
76
  overflow: hidden;
 
77
  }
 
78
  .wpr-version-li label {
79
  float:left;
80
  font-size: 16px;
@@ -148,4 +150,35 @@
148
 
149
  .wpr-no-changelog-message {
150
  margin-bottom:0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  }
74
  clear: left;
75
  padding: 8px 0;
76
  overflow: hidden;
77
+ width: 800px;
78
  }
79
+
80
  .wpr-version-li label {
81
  float:left;
82
  font-size: 16px;
150
 
151
  .wpr-no-changelog-message {
152
  margin-bottom:0;
153
+ }
154
+
155
+ .wpr-version-list{
156
+ width: 800px;
157
+ }
158
+ .wpr-wptc-upsell-banner{
159
+ position: absolute;
160
+ margin-left: 840px;
161
+ margin-top: -70px;
162
+ }
163
+
164
+ .wpr-wptc-button-external-icon-fix{
165
+ margin-top: 4px;
166
+ margin-left: 4px;
167
+ font-size: 16px;
168
+ }
169
+
170
+ .wpr-wptc-link-external-icon-fix{
171
+ font-size: 14px;
172
+ margin-left: -3px;
173
+ }
174
+
175
+ .wpr-wptc-link-external-icon-fix{
176
+ font-size: 14px;
177
+ margin-left: -3px;
178
+ }
179
+
180
+ .wpr-wptc-upsell-text{
181
+ font-size: 12px;
182
+ text-align: center;
183
+ padding-bottom: 10px;
184
  }
includes/rollback-menu.php CHANGED
@@ -27,6 +27,10 @@ $plugins = get_plugins();
27
 
28
  <div class="wpr-changelog"></div>
29
  </div>
 
 
 
 
30
 
31
  <?php if ( isset( $args['plugin_file'] ) && in_array( $args['plugin_file'], array_keys( $plugins ) ) ) {
32
  $versions = WP_Rollback()->versions_select( 'plugin' );
@@ -62,6 +66,7 @@ $plugins = get_plugins();
62
 
63
  <div class="wpr-submit-wrap">
64
  <a href="#wpr-modal-confirm" class="magnific-popup button-primary wpr-rollback-disabled"><?php _e( 'Rollback', 'wp-rollback' ); ?></a>
 
65
  <input type="button" value="<?php _e( 'Cancel', 'wp-rollback' ); ?>" class="button" onclick="location.href='<?php echo wp_get_referer(); ?>';" />
66
  </div>
67
  <?php do_action( 'wpr_hidden_fields' ); ?>
@@ -114,11 +119,12 @@ $plugins = get_plugins();
114
  </div>
115
  <div class="wpr-error">
116
  <p><?php
117
- _e( '<strong>Notice:</strong> We strongly recommend you perform a test rollback on a staging site and create a complete backup of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue arising from using this plugin.', 'wp-rollback' );
118
  ?></p>
119
  </div>
120
  <?php do_action( 'wpr_pre_rollback_buttons' ); ?>
121
  <input type="submit" value="<?php _e( 'Rollback', 'wp-rollback' ); ?>" class="button-primary wpr-go" />
 
122
  <a href="#" class="button wpr-close"><?php _e( 'Cancel', 'wp-rollback' ); ?></a>
123
  <?php do_action( 'wpr_post_rollback_buttons' ); ?>
124
  </div>
27
 
28
  <div class="wpr-changelog"></div>
29
  </div>
30
+ <div class="wpr-wptc-upsell-banner">
31
+ <div class="wpr-wptc-upsell-text">Our Backup &amp; Staging Partner</div>
32
+ <a href="https://wptimecapsule.com/?partner=impress"><img class="wptc-class" src="https://infinitewp-m7fzg7jh9vyw.netdna-ssl.com/wp-content/uploads/2018/05/wptc-rollback.jpg"></a>
33
+ </div>
34
 
35
  <?php if ( isset( $args['plugin_file'] ) && in_array( $args['plugin_file'], array_keys( $plugins ) ) ) {
36
  $versions = WP_Rollback()->versions_select( 'plugin' );
66
 
67
  <div class="wpr-submit-wrap">
68
  <a href="#wpr-modal-confirm" class="magnific-popup button-primary wpr-rollback-disabled"><?php _e( 'Rollback', 'wp-rollback' ); ?></a>
69
+ <a href="https://wptimecapsule.com/staging/?partner=impress" class="button-primary" target="_blank" ><?php _e( 'Test Rollback on Staging', 'wp-rollback' ); ?><span class="dashicons dashicons-external wpr-wptc-button-external-icon-fix"></span></a>
70
  <input type="button" value="<?php _e( 'Cancel', 'wp-rollback' ); ?>" class="button" onclick="location.href='<?php echo wp_get_referer(); ?>';" />
71
  </div>
72
  <?php do_action( 'wpr_hidden_fields' ); ?>
119
  </div>
120
  <div class="wpr-error">
121
  <p><?php
122
+ _e( '<strong>Notice:</strong> We strongly recommend you perform a <a href="https://wptimecapsule.com/staging/?partner=impress" target="_blank">test rollback on a staging site</a> and <a href="https://wptimecapsule.com/incremental-backups/?partner=impress" target="_blank">create a complete backup</a> of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue arising from using this plugin.', 'wp-rollback' );
123
  ?></p>
124
  </div>
125
  <?php do_action( 'wpr_pre_rollback_buttons' ); ?>
126
  <input type="submit" value="<?php _e( 'Rollback', 'wp-rollback' ); ?>" class="button-primary wpr-go" />
127
+ <a href="https://wptimecapsule.com/staging/?partner=impress" class="button-primary" target="_blank"><?php _e( 'Test Rollback on Staging', 'wp-rollback' ); ?><span class="dashicons dashicons-external wpr-wptc-button-external-icon-fix"></span></a>
128
  <a href="#" class="button wpr-close"><?php _e( 'Cancel', 'wp-rollback' ); ?></a>
129
  <?php do_action( 'wpr_post_rollback_buttons' ); ?>
130
  </div>
languages/wp-rollback.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 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: 2017-MO-DA HO:MI+ZONE\n"
11
  "Language-Team: WordImpress <info@wordimpress.com>\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
@@ -40,40 +40,44 @@ msgstr ""
40
  msgid "plugin"
41
  msgstr ""
42
 
43
- #: includes/rollback-menu.php:42
44
  msgid "Oh no! We're missing required rollback query strings. Please contact support so we can check this bug out and squash it!"
45
  msgstr ""
46
 
47
- #: includes/rollback-menu.php:64, includes/rollback-menu.php:121, wp-rollback.php:263, wp-rollback.php:567, wp-rollback.php:567, wp-rollback.php:637, wp-rollback.php:688
48
  msgid "Rollback"
49
  msgstr ""
50
 
51
- #: includes/rollback-menu.php:65, includes/rollback-menu.php:122
 
 
 
 
52
  msgid "Cancel"
53
  msgstr ""
54
 
55
- #: includes/rollback-menu.php:83
56
  msgid "Are you sure you want to perform the following rollback?"
57
  msgstr ""
58
 
59
- #: includes/rollback-menu.php:92
60
  msgid "Plugin Name:"
61
  msgstr ""
62
 
63
- #: includes/rollback-menu.php:94
64
  msgid "Theme Name:"
65
  msgstr ""
66
 
67
- #: includes/rollback-menu.php:101
68
  msgid "Installed Version:"
69
  msgstr ""
70
 
71
- #: includes/rollback-menu.php:107
72
  msgid "New Version:"
73
  msgstr ""
74
 
75
- #: includes/rollback-menu.php:117
76
- msgid "<strong>Notice:</strong> We strongly recommend you perform a test rollback on a staging site and create a complete backup of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue arising from using this plugin."
77
  msgstr ""
78
 
79
  #: wp-rollback.php:148, wp-rollback.php:160
1
+ # Copyright (C) 2018 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: 2018-MO-DA HO:MI+ZONE\n"
11
  "Language-Team: WordImpress <info@wordimpress.com>\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
40
  msgid "plugin"
41
  msgstr ""
42
 
43
+ #: includes/rollback-menu.php:46
44
  msgid "Oh no! We're missing required rollback query strings. Please contact support so we can check this bug out and squash it!"
45
  msgstr ""
46
 
47
+ #: includes/rollback-menu.php:68, includes/rollback-menu.php:126, wp-rollback.php:263, wp-rollback.php:567, wp-rollback.php:567, wp-rollback.php:637, wp-rollback.php:688
48
  msgid "Rollback"
49
  msgstr ""
50
 
51
+ #: includes/rollback-menu.php:69, includes/rollback-menu.php:127
52
+ msgid "Test Rollback on Staging"
53
+ msgstr ""
54
+
55
+ #: includes/rollback-menu.php:70, includes/rollback-menu.php:128
56
  msgid "Cancel"
57
  msgstr ""
58
 
59
+ #: includes/rollback-menu.php:88
60
  msgid "Are you sure you want to perform the following rollback?"
61
  msgstr ""
62
 
63
+ #: includes/rollback-menu.php:97
64
  msgid "Plugin Name:"
65
  msgstr ""
66
 
67
+ #: includes/rollback-menu.php:99
68
  msgid "Theme Name:"
69
  msgstr ""
70
 
71
+ #: includes/rollback-menu.php:106
72
  msgid "Installed Version:"
73
  msgstr ""
74
 
75
+ #: includes/rollback-menu.php:112
76
  msgid "New Version:"
77
  msgstr ""
78
 
79
+ #: includes/rollback-menu.php:122
80
+ msgid "<strong>Notice:</strong> We strongly recommend you perform a <a href=\"https://wptimecapsule.com/staging/?partner=impress\" target=\"_blank\">test rollback on a staging site</a> and <a href=\"https://wptimecapsule.com/incremental-backups/?partner=impress\" target=\"_blank\">create a complete backup</a> of your WordPress files and database prior to performing a rollback. We are not responsible for any misuse, deletions, white screens, fatal errors, or any other issue arising from using this plugin."
81
  msgstr ""
82
 
83
  #: wp-rollback.php:148, wp-rollback.php:160
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Rollback ===
2
  Contributors: wordimpress, dlocc, drrobotnik, webdevmattcrom
3
  Tags: rollback, revert, downgrade, version, plugins, themes, version, versions, backup, backups, revision, revisions
4
- Requires at least: 4.0
5
  Donate Link: https://wordimpress.com
6
  Tested up to: 4.8
7
- Stable tag: 1.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -42,7 +42,7 @@ We do have documentation on the plugin [Github Wiki](https://github.com/WordImpr
42
 
43
  = Minimum Requirements =
44
 
45
- * WordPress 3.8 or greater
46
  * PHP version 5.3 or greater
47
  * MySQL version 5.0 or greater
48
 
@@ -85,7 +85,7 @@ The documentation for this plugin is located on our [Github Wiki](https://github
85
 
86
  Yes! All strings are internationalized and ready to be translated. Simply use the languages/wp-rollback.pot file and your favorite translation tool. Once finished, please reach out to us on the WordPress.org forums or better yet, submit a pull request on the [Github Repo](https://github.com/WordImpress/WP-Rollback/).
87
 
88
- = Did this plugin win WordCamp Orange County's Plugin-Palooza? =
89
 
90
  Heck yes it did! The WordImpress team took home the gold.
91
 
@@ -111,6 +111,9 @@ This is the first version of this plugin. It is a tool for your convenience. Rol
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 1.5 =
115
  * New: You can now view plugin changelogs within the rollback screen. [#7](https://github.com/WordImpress/WP-Rollback/issues/7)
116
  * New: Added support for WordPress Multisite rollbacks for themes and plugins. [#22](https://github.com/WordImpress/WP-Rollback/issues/22)
1
  === WP Rollback ===
2
  Contributors: wordimpress, dlocc, drrobotnik, webdevmattcrom
3
  Tags: rollback, revert, downgrade, version, plugins, themes, version, versions, backup, backups, revision, revisions
4
+ Requires at least: 4.8
5
  Donate Link: https://wordimpress.com
6
  Tested up to: 4.8
7
+ Stable tag: 1.5.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
42
 
43
  = Minimum Requirements =
44
 
45
+ * WordPress 4.8 or greater
46
  * PHP version 5.3 or greater
47
  * MySQL version 5.0 or greater
48
 
85
 
86
  Yes! All strings are internationalized and ready to be translated. Simply use the languages/wp-rollback.pot file and your favorite translation tool. Once finished, please reach out to us on the WordPress.org forums or better yet, submit a pull request on the [Github Repo](https://github.com/WordImpress/WP-Rollback/).
87
 
88
+ = Did this plugin with WordCamp Orange County's Plugin-Palooza? =
89
 
90
  Heck yes it did! The WordImpress team took home the gold.
91
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.5.1 =
115
+ * Tweak: Added additional information about the importance of Staging and Backups and links to our preferred plugin.
116
+
117
  = 1.5 =
118
  * New: You can now view plugin changelogs within the rollback screen. [#7](https://github.com/WordImpress/WP-Rollback/issues/7)
119
  * New: Added support for WordPress Multisite rollbacks for themes and plugins. [#22](https://github.com/WordImpress/WP-Rollback/issues/22)
wp-rollback.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
6
  * Author: WordImpress
7
  * Author URI: https://wordimpress.com/
8
- * Version: 1.5
9
  * Text Domain: wp-rollback
10
  * Domain Path: /languages
11
  *
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
34
  *
35
  * @since 1.0
36
  */
37
- if ( ! class_exists( 'WP Rollback' ) ) : {
38
 
39
  /**
40
  * Class WP_Rollback
@@ -883,4 +883,4 @@ function WP_Rollback() {
883
  }
884
 
885
  // Get WP Rollback Running
886
- WP_Rollback();
5
  * Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
6
  * Author: WordImpress
7
  * Author URI: https://wordimpress.com/
8
+ * Version: 1.5.1
9
  * Text Domain: wp-rollback
10
  * Domain Path: /languages
11
  *
34
  *
35
  * @since 1.0
36
  */
37
+ if ( ! class_exists( 'WP_Rollback' ) ) : {
38
 
39
  /**
40
  * Class WP_Rollback
883
  }
884
 
885
  // Get WP Rollback Running
886
+ WP_Rollback();