Version Description
- Fix: Rollback link appears on non wp.org plugins https://github.com/WordImpress/WP-Rollback/issues/14 - thanks @scottopolis
- Removed unnecessary WP_ROLLBACK_VERSION constant
Download this release
Release Info
Developer | dlocc |
Plugin | WP Rollback |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- readme.txt +5 -1
- wp-rollback.php +2 -7
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: rollback, revert, downgrade, version, plugins, themes, version, versions,
|
|
4 |
Requires at least: 3.8
|
5 |
Donate Link: https://wordimpress.com
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.2
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -109,6 +109,10 @@ This is the first version of this plugin. It is a tool for your convenience. Rol
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
112 |
= 1.2 =
|
113 |
* New: Swedish translation files - Thanks @WPDailyThemes
|
114 |
|
4 |
Requires at least: 3.8
|
5 |
Donate Link: https://wordimpress.com
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 1.2.1 =
|
113 |
+
* Fix: Rollback link appears on non wp.org plugins https://github.com/WordImpress/WP-Rollback/issues/14 - thanks @scottopolis
|
114 |
+
* Removed unnecessary WP_ROLLBACK_VERSION constant
|
115 |
+
|
116 |
= 1.2 =
|
117 |
* New: Swedish translation files - Thanks @WPDailyThemes
|
118 |
|
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: http://wordimpress.com
|
8 |
-
* Version: 1.2
|
9 |
* Text Domain: wpr
|
10 |
* Domain Path: languages
|
11 |
*
|
@@ -143,11 +143,6 @@ if ( ! class_exists( 'WP Rollback' ) ) : /**
|
|
143 |
*/
|
144 |
private function setup_constants() {
|
145 |
|
146 |
-
// Plugin version
|
147 |
-
if ( ! defined( 'WP_ROLLBACK_VERSION' ) ) {
|
148 |
-
define( 'WP_ROLLBACK_VERSION', '1.0' );
|
149 |
-
}
|
150 |
-
|
151 |
// Plugin Folder Path
|
152 |
if ( ! defined( 'WP_ROLLBACK_PLUGIN_DIR' ) ) {
|
153 |
define( 'WP_ROLLBACK_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
@@ -499,7 +494,7 @@ if ( ! class_exists( 'WP Rollback' ) ) : /**
|
|
499 |
$plugin_data = apply_filters( 'wpr_plugin_data', $plugin_data );
|
500 |
|
501 |
//If plugin is missing package data do not output Rollback option
|
502 |
-
if ( ! isset( $plugin_data['package'] ) ) {
|
503 |
return $actions;
|
504 |
}
|
505 |
|
5 |
* Description: Rollback (or forward) any WordPress.org plugin or theme like a boss.
|
6 |
* Author: WordImpress
|
7 |
* Author URI: http://wordimpress.com
|
8 |
+
* Version: 1.2.1
|
9 |
* Text Domain: wpr
|
10 |
* Domain Path: languages
|
11 |
*
|
143 |
*/
|
144 |
private function setup_constants() {
|
145 |
|
|
|
|
|
|
|
|
|
|
|
146 |
// Plugin Folder Path
|
147 |
if ( ! defined( 'WP_ROLLBACK_PLUGIN_DIR' ) ) {
|
148 |
define( 'WP_ROLLBACK_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
494 |
$plugin_data = apply_filters( 'wpr_plugin_data', $plugin_data );
|
495 |
|
496 |
//If plugin is missing package data do not output Rollback option
|
497 |
+
if ( ! isset( $plugin_data['package'] ) || strpos( $plugin_data['package'], 'https://downloads.wordpress.org' ) === false ) {
|
498 |
return $actions;
|
499 |
}
|
500 |
|