Version Description
- Bug Fix: Fixed updates not working with some formats of zip files. Thanks to the team at Kaira for helping solve this issue.
Download this release
Release Info
Developer | chrisjean |
Plugin | Easy Theme and Plugin Upgrades |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- history.txt +3 -1
- init.php +22 -5
- modify-installer.php +10 -4
- readme.txt +38 -16
history.txt
CHANGED
@@ -9,4 +9,6 @@
|
|
9 |
1.0.4 - 2014-05-29 - Chris Jean
|
10 |
Updated instructions on how to upgrade themes.
|
11 |
1.0.5 - 2016-07-13 - Chris Jean
|
12 |
-
Added support for PHP 7+.
|
|
|
|
9 |
1.0.4 - 2014-05-29 - Chris Jean
|
10 |
Updated instructions on how to upgrade themes.
|
11 |
1.0.5 - 2016-07-13 - Chris Jean
|
12 |
+
Compatibility Fix: Added support for PHP 7+.
|
13 |
+
1.0.6 - 2016-07-19 - Chris Jean
|
14 |
+
Bug Fix: Fixed incorrect handling of some zip file formats. Thanks to the team at https://kairaweb.com/ for helping solve this issue.
|
init.php
CHANGED
@@ -2,11 +2,28 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Easy Theme and Plugin Upgrades
|
5 |
-
Plugin URI:
|
6 |
-
Description:
|
7 |
-
Author:
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
*/
|
11 |
|
12 |
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Easy Theme and Plugin Upgrades
|
5 |
+
Plugin URI: http://wordpress.org/extend/plugins/easy-theme-and-plugin-upgrades/
|
6 |
+
Description: Upgrade themes and plugins using a zip file without having to remove them first.
|
7 |
+
Author: Chris Jean
|
8 |
+
Author URI: https://chrisjean.com/
|
9 |
+
Version: 1.0.6
|
10 |
+
License: GPLv2 or later
|
11 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
12 |
+
Text Domain: easy-theme-and-plugin-upgrades
|
13 |
+
|
14 |
+
Easy Theme and Plugin Upgrades is free software you can redistribute
|
15 |
+
it and/or modify it under the terms of the GNU General Public License
|
16 |
+
as published by the Free Software Foundation, either version 2 of the
|
17 |
+
License, or any later version.
|
18 |
+
|
19 |
+
Easy Theme and Plugin Upgrades is distributed in the hope that it
|
20 |
+
will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
21 |
+
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
|
22 |
+
the GNU General Public License for more details.
|
23 |
+
|
24 |
+
You should have received a copy of the GNU General Public License
|
25 |
+
along with Easy Theme and Plugin Upgrades. If not, see
|
26 |
+
https://www.gnu.org/licenses/gpl-2.0.html.
|
27 |
*/
|
28 |
|
29 |
|
modify-installer.php
CHANGED
@@ -165,15 +165,21 @@ if ( ! class_exists( 'ETUModifyInstaller' ) ) {
|
|
165 |
|
166 |
$archive = new PclZip( $_FILES["{$this->_type}zip"]['tmp_name'] );
|
167 |
|
168 |
-
$directory = '';
|
169 |
$contents = $archive->listContent();
|
|
|
170 |
|
171 |
foreach ( (array) $contents as $content ) {
|
172 |
-
|
173 |
-
|
174 |
-
|
|
|
|
|
175 |
}
|
176 |
}
|
|
|
|
|
|
|
|
|
177 |
|
178 |
if ( 'theme' === $this->_type )
|
179 |
$data = $this->_get_theme_data( $directory );
|
165 |
|
166 |
$archive = new PclZip( $_FILES["{$this->_type}zip"]['tmp_name'] );
|
167 |
|
|
|
168 |
$contents = $archive->listContent();
|
169 |
+
$directories = array();
|
170 |
|
171 |
foreach ( (array) $contents as $content ) {
|
172 |
+
list( $directory ) = explode( '/', $content['filename'], 2 );
|
173 |
+
if ( isset( $directories[$directory] ) ) {
|
174 |
+
$directories[$directory]++;
|
175 |
+
} else {
|
176 |
+
$directories[$directory] = 1;
|
177 |
}
|
178 |
}
|
179 |
+
arsort( $directories );
|
180 |
+
reset( $directories );
|
181 |
+
|
182 |
+
$directory = key( $directories );
|
183 |
|
184 |
if ( 'theme' === $this->_type )
|
185 |
$data = $this->_get_theme_data( $directory );
|
readme.txt
CHANGED
@@ -1,17 +1,25 @@
|
|
1 |
=== Easy Theme and Plugin Upgrades ===
|
2 |
Contributors: chrisjean
|
3 |
-
Tags:
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.5.3
|
6 |
-
Stable tag: 1.0.
|
|
|
|
|
7 |
|
8 |
Easily upgrade your themes and plugins using zip files without removing the theme or plugin first.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
1. Download the latest zip file for your theme.
|
17 |
1. Log into your WordPress site.
|
@@ -23,14 +31,14 @@ __Easy Theme and Plugin Upgrades__ was created to make the life of WordPress use
|
|
23 |
1. Select "Yes" from the "Upgrade existing theme?" option.
|
24 |
1. Click the "Install Now" button.
|
25 |
|
26 |
-
=
|
27 |
|
28 |
1. Download the latest zip file for your plugin.
|
29 |
1. Log into your WordPress site.
|
30 |
1. Go to Plugins > Add New and click the Upload tab at the top of the page.
|
31 |
1. Select the zip file with the new plugin version to install.
|
32 |
1. Select "Yes" from the "Upgrade existing plugin?" option.
|
33 |
-
1. Click "Install Now".
|
34 |
|
35 |
== Installation ==
|
36 |
|
@@ -38,16 +46,30 @@ __Easy Theme and Plugin Upgrades__ was created to make the life of WordPress use
|
|
38 |
1. Upload the entire easy-theme-and-plugin-upgrades directory to your `/wp-content/plugins/` directory
|
39 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
40 |
|
41 |
-
==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
-
|
44 |
-
*
|
45 |
|
46 |
-
==
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
* 1.0.2 - 2013-08-20 - Removed a stray <i> tag in the Install Plugins screen that caused problems with installing plugins on WPEngine sites.
|
51 |
-
* 1.0.3 - 2014-04-18 - Added compatibility for theme upgrades in WordPress 3.9.
|
52 |
-
* 1.0.4 - 2014-05-29 - Updated instructions on how to upgrade themes.
|
53 |
-
* 1.0.5 - 2016-07-13 - Added support for PHP 7.
|
1 |
=== Easy Theme and Plugin Upgrades ===
|
2 |
Contributors: chrisjean
|
3 |
+
Tags: plugin, theme, upgrade, update, upload
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.5.3
|
6 |
+
Stable tag: 1.0.6
|
7 |
+
License: GPLv2 or later
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Easily upgrade your themes and plugins using zip files without removing the theme or plugin first.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
WordPress has a built-in feature to install themes and plugins by supplying a zip file. Unfortunately, you cannot upgrade a theme or plugin using the same process. Instead, WordPress will say "destination already exists" when trying to upgrade using a zip file and will fail to upgrade the theme or plugin.
|
15 |
|
16 |
+
Easy Theme and Plugin Upgrades fixes this limitation in WordPress. When active, you get an option to allow the theme or plugin to be upgraded.
|
17 |
+
|
18 |
+
While upgrading, a backup copy of the old theme or plugin is first created. This allows you to install the old version in case of problems with the new version.
|
19 |
+
|
20 |
+
== Frequently Asked Questions ==
|
21 |
+
|
22 |
+
= How do I upgrade a theme? =
|
23 |
|
24 |
1. Download the latest zip file for your theme.
|
25 |
1. Log into your WordPress site.
|
31 |
1. Select "Yes" from the "Upgrade existing theme?" option.
|
32 |
1. Click the "Install Now" button.
|
33 |
|
34 |
+
= How do I upgrade a plugin? =
|
35 |
|
36 |
1. Download the latest zip file for your plugin.
|
37 |
1. Log into your WordPress site.
|
38 |
1. Go to Plugins > Add New and click the Upload tab at the top of the page.
|
39 |
1. Select the zip file with the new plugin version to install.
|
40 |
1. Select "Yes" from the "Upgrade existing plugin?" option.
|
41 |
+
1. Click the "Install Now" button.
|
42 |
|
43 |
== Installation ==
|
44 |
|
46 |
1. Upload the entire easy-theme-and-plugin-upgrades directory to your `/wp-content/plugins/` directory
|
47 |
1. Activate the plugin through the 'Plugins' menu in WordPress
|
48 |
|
49 |
+
== Changelog ==
|
50 |
+
|
51 |
+
= 1.0.6 =
|
52 |
+
* Bug Fix: Fixed updates not working with some formats of zip files. Thanks to the team at [Kaira](https://kairaweb.com/) for helping solve this issue.
|
53 |
+
|
54 |
+
= 1.0.5 =
|
55 |
+
* Compatibility Fix: Added support for PHP 7.
|
56 |
+
|
57 |
+
= 1.0.4 =
|
58 |
+
* Enhancement: Updated instructions on how to upgrade themes.
|
59 |
+
|
60 |
+
= 1.0.3 =
|
61 |
+
* Compatibility Fix: Added compatibility for theme upgrades in WordPress 3.9.
|
62 |
+
|
63 |
+
= 1.0.2 =
|
64 |
+
* Bug Fix: Removed a stray <i> tag in the Install Plugins screen that caused problems with installing plugins on WPEngine sites.
|
65 |
+
|
66 |
+
= 1.0.1 =
|
67 |
+
* Bug Fix: Fixed an issue with the "The site is being updated and will be back in a few minutes" message showing on the frontend of the site for a few minutes after an upgrade. This only happened on multisite networks.
|
68 |
|
69 |
+
= 1.0.0 =
|
70 |
+
* Initial release version
|
71 |
|
72 |
+
== Upgrade Notice ==
|
73 |
|
74 |
+
= 1.0.6 =
|
75 |
+
Version 1.0.6 contains a bug fix that fixes a zip compatibility issue that many users have reported.
|
|
|
|
|
|
|
|