Version Description
- ADDED: Language file for translators
- FIXED: Translations should load properly now
- FIXED: Don't try to update WordPress to the same version (I'm mostly certain it's actually fixed this time)
- FIXED: Minor formatting change to the notification emails
Download this release
Release Info
Developer | pento |
Plugin | Advanced Automatic Updates |
Version | 0.3.2 |
Comparing to | |
See all releases |
Code changes from version 0.3.1 to 0.3.2
- automatic-updater.php +12 -6
- languages/automatic-updater.pot +160 -0
- readme.txt +13 -3
automatic-updater.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://pento.net/projects/automatic-updater-for-wordpress/
|
5 |
* Description: Automatically update your WordPress site, as soon as updates are released! Never worry about falling behing on updating again!
|
6 |
* Author: pento
|
7 |
-
* Version: 0.3.
|
8 |
* Author URI: http://pento.net/
|
9 |
* License: GPL2+
|
10 |
* Text Domain: automatic-updater
|
@@ -38,8 +38,11 @@ function auto_updater_init() {
|
|
38 |
update_option( 'automatic-updater', $options );
|
39 |
}
|
40 |
|
|
|
|
|
|
|
41 |
global $auto_updater_running;
|
42 |
-
// If the update check was one we called manually, don't get into a crazy
|
43 |
if ( $auto_updater_running )
|
44 |
return;
|
45 |
|
@@ -77,6 +80,11 @@ function auto_updater_core() {
|
|
77 |
|
78 |
include_once( dirname( __FILE__ ) . '/updater-skin.php' );
|
79 |
|
|
|
|
|
|
|
|
|
|
|
80 |
$updates = get_core_updates();
|
81 |
if ( empty( $updates ) )
|
82 |
return;
|
@@ -85,10 +93,6 @@ function auto_updater_core() {
|
|
85 |
if ( empty( $update ) )
|
86 |
return;
|
87 |
|
88 |
-
// Don't try to update if we somehow got the same or older version
|
89 |
-
if ( version_compare( $old_version, $update->current, '>=' ) )
|
90 |
-
return;
|
91 |
-
|
92 |
$old_version = get_bloginfo( 'version' );
|
93 |
|
94 |
$auto_updater_running = true;
|
@@ -111,6 +115,8 @@ function auto_updater_core() {
|
|
111 |
$message .= "\r\n\r\n" . __( 'Have fun!', 'automatic-updater' );
|
112 |
}
|
113 |
|
|
|
|
|
114 |
$debug = join( "\r\n", $skin->messages );
|
115 |
|
116 |
auto_updater_notification( $message, $debug );
|
4 |
* Plugin URI: http://pento.net/projects/automatic-updater-for-wordpress/
|
5 |
* Description: Automatically update your WordPress site, as soon as updates are released! Never worry about falling behing on updating again!
|
6 |
* Author: pento
|
7 |
+
* Version: 0.3.2
|
8 |
* Author URI: http://pento.net/
|
9 |
* License: GPL2+
|
10 |
* Text Domain: automatic-updater
|
38 |
update_option( 'automatic-updater', $options );
|
39 |
}
|
40 |
|
41 |
+
// Load the translations
|
42 |
+
load_plugin_textdomain( 'automatic-updater', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
43 |
+
|
44 |
global $auto_updater_running;
|
45 |
+
// If the update check was one we called manually, don't get into a crazy recursive loop.
|
46 |
if ( $auto_updater_running )
|
47 |
return;
|
48 |
|
80 |
|
81 |
include_once( dirname( __FILE__ ) . '/updater-skin.php' );
|
82 |
|
83 |
+
// If WordPress doesn't think there are updates available, no point in trying to update.
|
84 |
+
$update_data = wp_get_update_data();
|
85 |
+
if ( empty( $update_data['counts']['wordpress'] ) )
|
86 |
+
return;
|
87 |
+
|
88 |
$updates = get_core_updates();
|
89 |
if ( empty( $updates ) )
|
90 |
return;
|
93 |
if ( empty( $update ) )
|
94 |
return;
|
95 |
|
|
|
|
|
|
|
|
|
96 |
$old_version = get_bloginfo( 'version' );
|
97 |
|
98 |
$auto_updater_running = true;
|
115 |
$message .= "\r\n\r\n" . __( 'Have fun!', 'automatic-updater' );
|
116 |
}
|
117 |
|
118 |
+
$message .= "\r\n";
|
119 |
+
|
120 |
$debug = join( "\r\n", $skin->messages );
|
121 |
|
122 |
auto_updater_notification( $message, $debug );
|
languages/automatic-updater.pot
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012 Automatic Updater
|
2 |
+
# This file is distributed under the same license as the Automatic Updater package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Automatic Updater 0.3.1\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/automatic-updater\n"
|
7 |
+
"POT-Creation-Date: 2012-09-29 04:03:46+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
|
15 |
+
#. #-#-#-#-# plugin.pot (Automatic Updater 0.3.1) #-#-#-#-#
|
16 |
+
#. Plugin Name of the plugin/theme
|
17 |
+
#: admin.php:6 admin.php:46
|
18 |
+
msgid "Automatic Updater"
|
19 |
+
msgstr ""
|
20 |
+
|
21 |
+
#: admin.php:13
|
22 |
+
msgid "Overview"
|
23 |
+
msgstr ""
|
24 |
+
|
25 |
+
#: admin.php:15
|
26 |
+
msgid ""
|
27 |
+
"This settings page allows you to select whether you would like WordPress "
|
28 |
+
"Core, your plugins, and your themes to be automatically updated."
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: admin.php:16
|
32 |
+
msgid ""
|
33 |
+
"It is very important to keep your WordPress installation up to date for "
|
34 |
+
"security reasons, so unless you have a specific reason not to, we recommend "
|
35 |
+
"allowing everything to automatically update."
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: admin.php:20
|
39 |
+
msgid "A Plugin By <a href=\"%s\" target=\"_blank\">Gary</a>"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: admin.php:21
|
43 |
+
msgid "Donations"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: admin.php:22
|
47 |
+
msgid "Support Forums"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: admin.php:28
|
51 |
+
msgid "You do not have sufficient permissions to access this page."
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: admin.php:35
|
55 |
+
msgid "Settings updated"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: admin.php:39
|
59 |
+
msgid ""
|
60 |
+
"Update WordPress Core automatically? <strong>(Strongly Recommended)</strong>"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: admin.php:40
|
64 |
+
msgid "Update your plugins automatically?"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: admin.php:41
|
68 |
+
msgid "Updater your themes automatically?"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: admin.php:72
|
72 |
+
msgid "Show debug information in the notification email."
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: admin.php:73
|
76 |
+
msgid "Save Changes"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: automatic-updater.php:105
|
80 |
+
msgid "While trying to upgrade WordPress, we ran into the following error:"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: automatic-updater.php:107
|
84 |
+
msgid "We're sorry it didn't work out. Please try upgrading manually, instead."
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: automatic-updater.php:110
|
88 |
+
msgid "We've successfully upgraded WordPress from version %1s to version %2s!"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: automatic-updater.php:111
|
92 |
+
msgid "Have fun!"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: automatic-updater.php:149
|
96 |
+
msgid "We found a plugin upgrade!"
|
97 |
+
msgid_plural "We found upgrades for some plugins!"
|
98 |
+
msgstr[0] ""
|
99 |
+
msgstr[1] ""
|
100 |
+
|
101 |
+
#. translators: First argument is the Plugin name, second argument is the error
|
102 |
+
#. encountered while upgrading
|
103 |
+
#: automatic-updater.php:155
|
104 |
+
msgid "%1s: We encounted an error upgrading this plugin: %2s"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: automatic-updater.php:161 automatic-updater.php:214
|
108 |
+
msgid "%1s: Successfully upgraded from version %2s to %3s!"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: automatic-updater.php:202
|
112 |
+
msgid "We found a theme upgrade!"
|
113 |
+
msgid_plural "We found upgrades for some themes!"
|
114 |
+
msgstr[0] ""
|
115 |
+
msgstr[1] ""
|
116 |
+
|
117 |
+
#. translators: First argument is the Theme name, second argument is the error
|
118 |
+
#. encountered while upgrading
|
119 |
+
#: automatic-updater.php:208
|
120 |
+
msgid "%1s: We encounted an error upgrading this theme: %2s"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: automatic-updater.php:234
|
124 |
+
msgid "WordPress Update: %1s"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: automatic-updater.php:236
|
128 |
+
msgid "Howdy!"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: automatic-updater.php:238
|
132 |
+
msgid ""
|
133 |
+
"Automatic Updater just ran on your site, %1s, with the following result:"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: automatic-updater.php:244
|
137 |
+
msgid "Thanks for using the Automatic Updater plugin!"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: automatic-updater.php:248
|
141 |
+
msgid "Debug Information:"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#. Plugin URI of the plugin/theme
|
145 |
+
msgid "http://pento.net/projects/automatic-updater-for-wordpress/"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#. Description of the plugin/theme
|
149 |
+
msgid ""
|
150 |
+
"Automatically update your WordPress site, as soon as updates are released! "
|
151 |
+
"Never worry about falling behing on updating again!"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#. Author of the plugin/theme
|
155 |
+
msgid "pento"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#. Author URI of the plugin/theme
|
159 |
+
msgid "http://pento.net/"
|
160 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://pento.net/donate/
|
|
4 |
Tags: updates, core, plugins, themes, wordpress automatic upgrader
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 0.3
|
8 |
|
9 |
Automatically update WordPress, your themes and plugins! Never have to click the update button again!
|
10 |
|
@@ -40,6 +40,12 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
= 0.3.1 =
|
44 |
* FIXED: Don't try to update WordPress to the same version (harmless, but unnecessary)
|
45 |
* FIXED: A PHP warning in the Settings page
|
@@ -48,7 +54,7 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
|
|
48 |
= 0.3 =
|
49 |
* ADDED: Extra update checks, updates will now occur as soon as is humanly possible
|
50 |
* ADDED: Much nicer notification emails when upgrades occur
|
51 |
-
* ADDED: Option to display debug
|
52 |
* FIXED: Use ouput buffering to ensure nothing is printed during upgrades
|
53 |
|
54 |
= 0.2 =
|
@@ -57,4 +63,8 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
|
|
57 |
* FIXED: Support forums link
|
58 |
|
59 |
= 0.1 =
|
60 |
-
* Initial release
|
|
|
|
|
|
|
|
4 |
Tags: updates, core, plugins, themes, wordpress automatic upgrader
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 0.3.1
|
8 |
|
9 |
Automatically update WordPress, your themes and plugins! Never have to click the update button again!
|
10 |
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 0.3.2 =
|
44 |
+
* ADDED: Language file for translators
|
45 |
+
* FIXED: Translations should load properly now
|
46 |
+
* FIXED: Don't try to update WordPress to the same version (I'm mostly certain it's actually fixed this time)
|
47 |
+
* FIXED: Minor formatting change to the notification emails
|
48 |
+
|
49 |
= 0.3.1 =
|
50 |
* FIXED: Don't try to update WordPress to the same version (harmless, but unnecessary)
|
51 |
* FIXED: A PHP warning in the Settings page
|
54 |
= 0.3 =
|
55 |
* ADDED: Extra update checks, updates will now occur as soon as is humanly possible
|
56 |
* ADDED: Much nicer notification emails when upgrades occur
|
57 |
+
* ADDED: Option to display debug information in the notification email
|
58 |
* FIXED: Use ouput buffering to ensure nothing is printed during upgrades
|
59 |
|
60 |
= 0.2 =
|
63 |
* FIXED: Support forums link
|
64 |
|
65 |
= 0.1 =
|
66 |
+
* Initial release
|
67 |
+
|
68 |
+
== Screenshots ==
|
69 |
+
|
70 |
+
1. Notification emails are sent as soon as an update is complete, confirming if the update was successful or not.
|