WP Downgrade | Specific Core Version - Version 1.2.1

Version Description

  • compatibility with WordPress 5.3.2
  • Bugfix for URL with language EN
Download this release

Release Info

Developer Reisetiger
Plugin Icon 128x128 WP Downgrade | Specific Core Version
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (2) hide show
  1. readme.txt +5 -1
  2. wp-downgrade.php +3 -3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Reisetiger
3
  Donate link: http://www.reisetiger.net
4
  Tags: Downgrade, Core, WP-Core, Version, Rollback, Upgrade, Update, Release, Versionskontrolle
5
  Requires at least: 3.0.1
6
- Tested up to: 5.0.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -65,6 +65,10 @@ A: Weil es bisher keine Fragen gab! :-)
65
 
66
 
67
  == Changelog ==
 
 
 
 
68
  = 1.2.0 =
69
  * Advanced option: You are now able to manually edit the download link, if necessary. This allows, for example, a change of language. Or you can get the release from another source.
70
  * Notes improved a little.
3
  Donate link: http://www.reisetiger.net
4
  Tags: Downgrade, Core, WP-Core, Version, Rollback, Upgrade, Update, Release, Versionskontrolle
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.3.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
65
 
66
 
67
  == Changelog ==
68
+ = 1.2.1 =
69
+ * compatibility with WordPress 5.3.2
70
+ * Bugfix for URL with language EN
71
+
72
  = 1.2.0 =
73
  * Advanced option: You are now able to manually edit the download link, if necessary. This allows, for example, a change of language. Or you can get the release from another source.
74
  * Notes improved a little.
wp-downgrade.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Downgrade | Specific Core Version
4
  Plugin URI: https://www.reisetiger.net
5
  Description: WP Downgrade allows you to either downgrade or update WordPress Core to an arbitrary version of your choice. The version you choose is downloaded directly from wordpress.org and installed just like any regular release update. The target version WordPress allows you to update to remains constant until you enter a different one or deactivate the plugin either completely or by leaving the target version field empty.
6
- Version: 1.2.0
7
  Author: Reisetiger
8
  Author URI: https://www.reisetiger.net
9
  License: GPL2
@@ -165,7 +165,7 @@ add_filter('site_transient_update_core','wpdg_specific_version' );
165
  function wpdg_specific_version($updates){
166
 
167
  $sprache = get_locale().'/';
168
- if ($sprache == 'en_US/' OR $sprache == 'en'){
169
  $sprache = '';
170
  };
171
  $dg_version = get_option('wpdg_specific_version_name');
@@ -203,7 +203,7 @@ function wpdg_get_url($version) {
203
  $url = get_option('wpdg_download_url');
204
  } else {
205
  $sprache = get_locale().'/';
206
- if ($sprache == 'en_US/' OR $sprache == 'en'){
207
  $sprache = '';
208
  };
209
  $url = "https://downloads.wordpress.org/release/".$sprache."wordpress-".$version.".zip";
3
  Plugin Name: WP Downgrade | Specific Core Version
4
  Plugin URI: https://www.reisetiger.net
5
  Description: WP Downgrade allows you to either downgrade or update WordPress Core to an arbitrary version of your choice. The version you choose is downloaded directly from wordpress.org and installed just like any regular release update. The target version WordPress allows you to update to remains constant until you enter a different one or deactivate the plugin either completely or by leaving the target version field empty.
6
+ Version: 1.2.1
7
  Author: Reisetiger
8
  Author URI: https://www.reisetiger.net
9
  License: GPL2
165
  function wpdg_specific_version($updates){
166
 
167
  $sprache = get_locale().'/';
168
+ if ($sprache == 'en_US/' OR $sprache == 'en' OR $sprache == 'en/'){
169
  $sprache = '';
170
  };
171
  $dg_version = get_option('wpdg_specific_version_name');
203
  $url = get_option('wpdg_download_url');
204
  } else {
205
  $sprache = get_locale().'/';
206
+ if ($sprache == 'en_US/' OR $sprache == 'en' OR $sprache == 'en/'){
207
  $sprache = '';
208
  };
209
  $url = "https://downloads.wordpress.org/release/".$sprache."wordpress-".$version.".zip";