Version Description
- ADDED: German translation. Props Alexander Pfabel
- ADDED: Version check on activation, for compatibility
- UPDATED: Language POT file
- FIXED: Typo in the Settings page
- FIXED: Debug information in the notification email now has HTML tags stripped out
- FIXED: Core version check was a little too strong, and could cause updates to be missed. Relaxed a little
- FIXED: Checking to see if WordPress has found any updates will now occur much more frequently
Download this release
Release Info
| Developer | pento |
| Plugin | |
| Version | 0.4 |
| Comparing to | |
| See all releases | |
Code changes from version 0.3.2 to 0.4
- admin.php +2 -3
- automatic-updater.php +47 -9
- languages/automatic-updater-de_DE.mo +0 -0
- languages/automatic-updater-de_DE.po +233 -0
- languages/automatic-updater.pot +38 -32
- readme.txt +13 -3
- updater-skin.php +8 -1
admin.php
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
<?php
|
| 2 |
|
| 3 |
-
add_action( 'admin_menu', 'auto_updater_plugin_menu' );
|
| 4 |
-
|
| 5 |
function auto_updater_plugin_menu() {
|
| 6 |
$hook = add_options_page( __( 'Automatic Updater', 'automatic-updater' ), __( 'Automatic Updater', 'automatic-updater' ), 'update_core', 'automatic-updater', 'auto_updater_settings' );
|
| 7 |
add_action( "load-$hook", 'auto_updater_settings_loader' );
|
| 8 |
}
|
|
|
|
| 9 |
|
| 10 |
function auto_updater_settings_loader() {
|
| 11 |
get_current_screen()->add_help_tab( array(
|
|
@@ -38,7 +37,7 @@ function auto_updater_settings() {
|
|
| 38 |
$messages = array(
|
| 39 |
'core' => __( 'Update WordPress Core automatically? <strong>(Strongly Recommended)</strong>', 'automatic-updater' ),
|
| 40 |
'plugins' => __( 'Update your plugins automatically?', 'automatic-updater' ),
|
| 41 |
-
'themes' => __( '
|
| 42 |
);
|
| 43 |
?>
|
| 44 |
<div class="wrap">
|
| 1 |
<?php
|
| 2 |
|
|
|
|
|
|
|
| 3 |
function auto_updater_plugin_menu() {
|
| 4 |
$hook = add_options_page( __( 'Automatic Updater', 'automatic-updater' ), __( 'Automatic Updater', 'automatic-updater' ), 'update_core', 'automatic-updater', 'auto_updater_settings' );
|
| 5 |
add_action( "load-$hook", 'auto_updater_settings_loader' );
|
| 6 |
}
|
| 7 |
+
add_action( 'admin_menu', 'auto_updater_plugin_menu' );
|
| 8 |
|
| 9 |
function auto_updater_settings_loader() {
|
| 10 |
get_current_screen()->add_help_tab( array(
|
| 37 |
$messages = array(
|
| 38 |
'core' => __( 'Update WordPress Core automatically? <strong>(Strongly Recommended)</strong>', 'automatic-updater' ),
|
| 39 |
'plugins' => __( 'Update your plugins automatically?', 'automatic-updater' ),
|
| 40 |
+
'themes' => __( 'Update your themes automatically?', 'automatic-updater' )
|
| 41 |
);
|
| 42 |
?>
|
| 43 |
<div class="wrap">
|
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.
|
| 8 |
* Author URI: http://pento.net/
|
| 9 |
* License: GPL2+
|
| 10 |
* Text Domain: automatic-updater
|
|
@@ -14,6 +14,24 @@
|
|
| 14 |
global $auto_updater_running;
|
| 15 |
$auto_updater_running = false;
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
function auto_updater_init() {
|
| 18 |
if ( is_admin() )
|
| 19 |
include_once( dirname( __FILE__ ) . '/admin.php' );
|
|
@@ -39,7 +57,7 @@ function auto_updater_init() {
|
|
| 39 |
}
|
| 40 |
|
| 41 |
// Load the translations
|
| 42 |
-
load_plugin_textdomain( 'automatic-updater', false, dirname(
|
| 43 |
|
| 44 |
global $auto_updater_running;
|
| 45 |
// If the update check was one we called manually, don't get into a crazy recursive loop.
|
|
@@ -58,7 +76,7 @@ function auto_updater_init() {
|
|
| 58 |
}
|
| 59 |
else {
|
| 60 |
include_once( ABSPATH . 'wp-admin/includes/update.php' );
|
| 61 |
-
$update_data =
|
| 62 |
// Not in a cron, schedule updates to happen in the next cron run
|
| 63 |
foreach ( $types as $internal => $type ) {
|
| 64 |
if ( ! empty( $options['update'][$type] ) && $update_data['counts'][$internal] > 0 ) {
|
|
@@ -80,11 +98,6 @@ function auto_updater_core() {
|
|
| 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,7 +106,11 @@ function auto_updater_core() {
|
|
| 93 |
if ( empty( $update ) )
|
| 94 |
return;
|
| 95 |
|
| 96 |
-
$old_version =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
$auto_updater_running = true;
|
| 99 |
|
|
@@ -256,3 +273,24 @@ function auto_updater_notification( $info = '', $debug = '' ) {
|
|
| 256 |
wp_mail( get_option( 'admin_email' ), $subject, $message );
|
| 257 |
}
|
| 258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.4
|
| 8 |
* Author URI: http://pento.net/
|
| 9 |
* License: GPL2+
|
| 10 |
* Text Domain: automatic-updater
|
| 14 |
global $auto_updater_running;
|
| 15 |
$auto_updater_running = false;
|
| 16 |
|
| 17 |
+
define( 'AUTOMATIC_UPDATER_BASENAME', plugin_basename( __FILE__ ) );
|
| 18 |
+
|
| 19 |
+
function auto_updater_requires_wordpress_version() {
|
| 20 |
+
if ( version_compare( $GLOBALS['wp_version'], '3.4', '<' ) ) {
|
| 21 |
+
if ( is_plugin_active( AUTOMATIC_UPDATER_BASENAME ) ) {
|
| 22 |
+
deactivate_plugins( AUTOMATIC_UPDATER_BASENAME );
|
| 23 |
+
add_action( 'admin_notices', 'auto_updater_disabled_notice' );
|
| 24 |
+
if ( isset( $_GET['activate'] ) )
|
| 25 |
+
unset( $_GET['activate'] );
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
add_action( 'admin_init', 'auto_updater_requires_wordpress_version' );
|
| 30 |
+
|
| 31 |
+
function auto_updater_disabled_notice() {
|
| 32 |
+
echo '<div class="updated"><p><strong>' . __( 'Automatic Updater requires WordPress 3.4 or higher! Please upgrade WordPress manually, then reactivate Automatic Updater.', 'automatic-updater' ) . '</strong></p></div>';
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
function auto_updater_init() {
|
| 36 |
if ( is_admin() )
|
| 37 |
include_once( dirname( __FILE__ ) . '/admin.php' );
|
| 57 |
}
|
| 58 |
|
| 59 |
// Load the translations
|
| 60 |
+
load_plugin_textdomain( 'automatic-updater', false, dirname( AUTOMATIC_UPDATER_BASENAME ) . '/languages/' );
|
| 61 |
|
| 62 |
global $auto_updater_running;
|
| 63 |
// If the update check was one we called manually, don't get into a crazy recursive loop.
|
| 76 |
}
|
| 77 |
else {
|
| 78 |
include_once( ABSPATH . 'wp-admin/includes/update.php' );
|
| 79 |
+
$update_data = auto_updater_get_update_data();
|
| 80 |
// Not in a cron, schedule updates to happen in the next cron run
|
| 81 |
foreach ( $types as $internal => $type ) {
|
| 82 |
if ( ! empty( $options['update'][$type] ) && $update_data['counts'][$internal] > 0 ) {
|
| 98 |
|
| 99 |
include_once( dirname( __FILE__ ) . '/updater-skin.php' );
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
$updates = get_core_updates();
|
| 102 |
if ( empty( $updates ) )
|
| 103 |
return;
|
| 106 |
if ( empty( $update ) )
|
| 107 |
return;
|
| 108 |
|
| 109 |
+
$old_version = $GLOBALS['wp_version'];
|
| 110 |
+
|
| 111 |
+
// Sanity check that the new upgrade is actually an upgrade
|
| 112 |
+
if ( version_compare( $old_version, $update->current, '>=' ) )
|
| 113 |
+
return;
|
| 114 |
|
| 115 |
$auto_updater_running = true;
|
| 116 |
|
| 273 |
wp_mail( get_option( 'admin_email' ), $subject, $message );
|
| 274 |
}
|
| 275 |
|
| 276 |
+
function auto_updater_get_update_data() {
|
| 277 |
+
$counts = array( 'plugins' => 0, 'themes' => 0, 'wordpress' => 0 );
|
| 278 |
+
|
| 279 |
+
$update_plugins = get_site_transient( 'update_plugins' );
|
| 280 |
+
if ( ! empty( $update_plugins->response ) )
|
| 281 |
+
$counts['plugins'] = count( $update_plugins->response );
|
| 282 |
+
|
| 283 |
+
$update_themes = get_site_transient( 'update_themes' );
|
| 284 |
+
if ( ! empty( $update_themes->response ) )
|
| 285 |
+
$counts['themes'] = count( $update_themes->response );
|
| 286 |
+
|
| 287 |
+
if ( function_exists( 'get_core_updates' ) ) {
|
| 288 |
+
$update_wordpress = get_core_updates( array('dismissed' => false) );
|
| 289 |
+
if ( ! empty( $update_wordpress ) && ! in_array( $update_wordpress[0]->response, array('development', 'latest') ) )
|
| 290 |
+
$counts['wordpress'] = 1;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
$counts['total'] = $counts['plugins'] + $counts['themes'] + $counts['wordpress'];
|
| 294 |
+
|
| 295 |
+
return apply_filters( 'auto_update_get_update_data', array( 'counts' => $counts ) );
|
| 296 |
+
}
|
languages/automatic-updater-de_DE.mo
ADDED
|
Binary file
|
languages/automatic-updater-de_DE.po
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: Automatic Updater v0.3.3\n"
|
| 4 |
+
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: \n"
|
| 6 |
+
"PO-Revision-Date: 2012-09-30 21:55+1000\n"
|
| 7 |
+
"Last-Translator: Gary Pendergast <gary@pento.net>\n"
|
| 8 |
+
"Language-Team: \n"
|
| 9 |
+
"MIME-Version: 1.0\n"
|
| 10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
| 13 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
| 14 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
| 15 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
| 16 |
+
"X-Poedit-Basepath: ../\n"
|
| 17 |
+
"X-Textdomain-Support: yes\n"
|
| 18 |
+
"Language: de_DE\n"
|
| 19 |
+
"X-Generator: Poedit 1.5.3\n"
|
| 20 |
+
"X-Poedit-SearchPath-0: .\n"
|
| 21 |
+
|
| 22 |
+
# @ automatic-updater
|
| 23 |
+
#. translators: plugin header field 'Name'
|
| 24 |
+
#: admin.php:6 admin.php:46 automatic-updater.php:0
|
| 25 |
+
msgid "Automatic Updater"
|
| 26 |
+
msgstr ""
|
| 27 |
+
|
| 28 |
+
# @ automatic-updater
|
| 29 |
+
#: admin.php:13
|
| 30 |
+
msgid "Overview"
|
| 31 |
+
msgstr "Übersicht"
|
| 32 |
+
|
| 33 |
+
# @ automatic-updater
|
| 34 |
+
#: admin.php:15
|
| 35 |
+
msgid ""
|
| 36 |
+
"This settings page allows you to select whether you would like WordPress "
|
| 37 |
+
"Core, your plugins, and your themes to be automatically updated."
|
| 38 |
+
msgstr ""
|
| 39 |
+
"Auf dieser Einstellungsseite können Sie wählen, ob WordPress, die Plugins "
|
| 40 |
+
"und Ihre Themes automatisch aktualisiert werden sollen."
|
| 41 |
+
|
| 42 |
+
# @ automatic-updater
|
| 43 |
+
#: admin.php:16
|
| 44 |
+
msgid ""
|
| 45 |
+
"It is very important to keep your WordPress installation up to date for "
|
| 46 |
+
"security reasons, so unless you have a specific reason not to, we recommend "
|
| 47 |
+
"allowing everything to automatically update."
|
| 48 |
+
msgstr ""
|
| 49 |
+
"Es ist aus Sicherheitsgründen sehr wichtig Ihre WordPress-Installation "
|
| 50 |
+
"aktuell zu halten. Sofern Sie keinen bestimmten Grund haben, nicht zu "
|
| 51 |
+
"aktualisieren, empfehlen wir daher alles automatisch zu aktualisieren."
|
| 52 |
+
|
| 53 |
+
# @ automatic-updater
|
| 54 |
+
#: admin.php:20
|
| 55 |
+
#, php-format
|
| 56 |
+
msgid "A Plugin By <a href=\"%s\" target=\"_blank\">Gary</a>"
|
| 57 |
+
msgstr "Ein Plugin von <a href=\"%s\" target=\"_blank\">Gary</a>"
|
| 58 |
+
|
| 59 |
+
# @ automatic-updater
|
| 60 |
+
#: admin.php:21
|
| 61 |
+
msgid "Donations"
|
| 62 |
+
msgstr "Spenden"
|
| 63 |
+
|
| 64 |
+
# @ automatic-updater
|
| 65 |
+
#: admin.php:22
|
| 66 |
+
msgid "Support Forums"
|
| 67 |
+
msgstr "Hilfe-Forum"
|
| 68 |
+
|
| 69 |
+
# @ automatic-updater
|
| 70 |
+
#: admin.php:28
|
| 71 |
+
msgid "You do not have sufficient permissions to access this page."
|
| 72 |
+
msgstr ""
|
| 73 |
+
"Sie verfügen nicht über ausreichende Berechtigungen, um diese Seite zu sehen."
|
| 74 |
+
|
| 75 |
+
# @ automatic-updater
|
| 76 |
+
#: admin.php:35
|
| 77 |
+
msgid "Settings updated"
|
| 78 |
+
msgstr "Einstellungen aktualisiert"
|
| 79 |
+
|
| 80 |
+
# @ automatic-updater
|
| 81 |
+
#: admin.php:39
|
| 82 |
+
msgid ""
|
| 83 |
+
"Update WordPress Core automatically? <strong>(Strongly Recommended)</strong>"
|
| 84 |
+
msgstr ""
|
| 85 |
+
"WordPress automatisch aktualisieren? <strong>(dringend empfohlen)</strong>"
|
| 86 |
+
|
| 87 |
+
# @ automatic-updater
|
| 88 |
+
#: admin.php:40
|
| 89 |
+
msgid "Update your plugins automatically?"
|
| 90 |
+
msgstr "Plugins automatisch aktualisieren?"
|
| 91 |
+
|
| 92 |
+
# @ automatic-updater
|
| 93 |
+
#: admin.php:41
|
| 94 |
+
msgid "Update your themes automatically?"
|
| 95 |
+
msgstr "Themes automatisch aktualisieren?"
|
| 96 |
+
|
| 97 |
+
# @ automatic-updater
|
| 98 |
+
#: admin.php:72
|
| 99 |
+
msgid "Show debug information in the notification email."
|
| 100 |
+
msgstr ""
|
| 101 |
+
"Informationen für die Fehlerbehebung in der Benachrichtigungs-E-Mail "
|
| 102 |
+
"anzeigen."
|
| 103 |
+
|
| 104 |
+
# @ automatic-updater
|
| 105 |
+
#: admin.php:73
|
| 106 |
+
msgid "Save Changes"
|
| 107 |
+
msgstr "Änderungen übernehmen"
|
| 108 |
+
|
| 109 |
+
# @ automatic-updater
|
| 110 |
+
#. translators: plugin header field 'PluginURI'
|
| 111 |
+
#: automatic-updater.php:0
|
| 112 |
+
msgid "http://pento.net/projects/automatic-updater-for-wordpress/"
|
| 113 |
+
msgstr ""
|
| 114 |
+
|
| 115 |
+
# @ automatic-updater
|
| 116 |
+
#. translators: plugin header field 'Description'
|
| 117 |
+
#: automatic-updater.php:0
|
| 118 |
+
msgid ""
|
| 119 |
+
"Automatically update your WordPress site, as soon as updates are released! "
|
| 120 |
+
"Never worry about falling behing on updating again!"
|
| 121 |
+
msgstr ""
|
| 122 |
+
"Automatische Aktualisierung Ihrer WordPress-Website, sobald Aktualisierungen "
|
| 123 |
+
"zur Verfügung stehen! Nie wieder Sorgen machen, bei Aktualisierungen ins "
|
| 124 |
+
"Hintertreffen zu geraten!"
|
| 125 |
+
|
| 126 |
+
# @ automatic-updater
|
| 127 |
+
#. translators: plugin header field 'Author'
|
| 128 |
+
#: automatic-updater.php:0
|
| 129 |
+
msgid "pento"
|
| 130 |
+
msgstr ""
|
| 131 |
+
|
| 132 |
+
# @ automatic-updater
|
| 133 |
+
#. translators: plugin header field 'AuthorURI'
|
| 134 |
+
#: automatic-updater.php:0
|
| 135 |
+
msgid "http://pento.net/"
|
| 136 |
+
msgstr ""
|
| 137 |
+
|
| 138 |
+
# @ automatic-updater
|
| 139 |
+
#. translators: plugin header field 'Version'
|
| 140 |
+
#: automatic-updater.php:0
|
| 141 |
+
msgid "0.3.2"
|
| 142 |
+
msgstr ""
|
| 143 |
+
|
| 144 |
+
# @ automatic-updater
|
| 145 |
+
#: automatic-updater.php:109
|
| 146 |
+
msgid "While trying to upgrade WordPress, we ran into the following error:"
|
| 147 |
+
msgstr ""
|
| 148 |
+
"Beim Versuch WordPress zu aktualisieren, wurde die folgende Fehlermeldung "
|
| 149 |
+
"ausgegeben:"
|
| 150 |
+
|
| 151 |
+
# @ automatic-updater
|
| 152 |
+
#: automatic-updater.php:111
|
| 153 |
+
msgid "We're sorry it didn't work out. Please try upgrading manually, instead."
|
| 154 |
+
msgstr ""
|
| 155 |
+
"Leider hat etwas nicht funktioniert. Bitte führen Sie die Aktualisierung "
|
| 156 |
+
"stattdessen manuell durch."
|
| 157 |
+
|
| 158 |
+
# @ automatic-updater
|
| 159 |
+
#: automatic-updater.php:114
|
| 160 |
+
#, php-format
|
| 161 |
+
msgid "We've successfully upgraded WordPress from version %1s to version %2s!"
|
| 162 |
+
msgstr ""
|
| 163 |
+
"Wir haben WordPress erfolgreich von Version% 1s auf Version% 2s aktualisiert!"
|
| 164 |
+
|
| 165 |
+
# @ automatic-updater
|
| 166 |
+
#: automatic-updater.php:115
|
| 167 |
+
msgid "Have fun!"
|
| 168 |
+
msgstr "Viel Spaß!"
|
| 169 |
+
|
| 170 |
+
# @ automatic-updater
|
| 171 |
+
#: automatic-updater.php:153
|
| 172 |
+
msgid "We found a plugin upgrade!"
|
| 173 |
+
msgid_plural "We found upgrades for some plugins!"
|
| 174 |
+
msgstr[0] "Wir haben eine Aktualisierung für ein Plugin gefunden!"
|
| 175 |
+
msgstr[1] "Wir haben Aktualisierungen für einige Plugins gefunden!"
|
| 176 |
+
|
| 177 |
+
# @ automatic-updater
|
| 178 |
+
#. translators: First argument is the Plugin name, second argument is the error encountered while upgrading
|
| 179 |
+
#: automatic-updater.php:159
|
| 180 |
+
#, php-format
|
| 181 |
+
msgid "%1s: We encounted an error upgrading this plugin: %2s"
|
| 182 |
+
msgstr "%1s: Ein Fehler ist beim Aktualisieren dieses Plugins aufgetreten: %2s"
|
| 183 |
+
|
| 184 |
+
# @ automatic-updater
|
| 185 |
+
#: automatic-updater.php:165 automatic-updater.php:218
|
| 186 |
+
#, php-format
|
| 187 |
+
msgid "%1s: Successfully upgraded from version %2s to %3s!"
|
| 188 |
+
msgstr "%1s: Erfolgreich von Version %2s auf %3s aktualisiert!"
|
| 189 |
+
|
| 190 |
+
# @ automatic-updater
|
| 191 |
+
#: automatic-updater.php:206
|
| 192 |
+
msgid "We found a theme upgrade!"
|
| 193 |
+
msgid_plural "We found upgrades for some themes!"
|
| 194 |
+
msgstr[0] "Wir haben eine Aktualisierung für ein Theme gefunden!"
|
| 195 |
+
msgstr[1] "Wir haben Aktualisierungen für einige Themes gefunden!"
|
| 196 |
+
|
| 197 |
+
# @ automatic-updater
|
| 198 |
+
#. translators: First argument is the Theme name, second argument is the error encountered while upgrading
|
| 199 |
+
#: automatic-updater.php:212
|
| 200 |
+
#, php-format
|
| 201 |
+
msgid "%1s: We encounted an error upgrading this theme: %2s"
|
| 202 |
+
msgstr ""
|
| 203 |
+
"%1s: Beim Aktualisieren ist bei diesem Theme ein Fehler aufgetreten: %2s"
|
| 204 |
+
|
| 205 |
+
# @ automatic-updater
|
| 206 |
+
#: automatic-updater.php:238
|
| 207 |
+
#, php-format
|
| 208 |
+
msgid "WordPress Update: %1s"
|
| 209 |
+
msgstr "WordPress-Aktualisierung: %1s"
|
| 210 |
+
|
| 211 |
+
# @ automatic-updater
|
| 212 |
+
#: automatic-updater.php:240
|
| 213 |
+
msgid "Howdy!"
|
| 214 |
+
msgstr "Tach!"
|
| 215 |
+
|
| 216 |
+
# @ automatic-updater
|
| 217 |
+
#: automatic-updater.php:242
|
| 218 |
+
#, php-format
|
| 219 |
+
msgid ""
|
| 220 |
+
"Automatic Updater just ran on your site, %1s, with the following result:"
|
| 221 |
+
msgstr ""
|
| 222 |
+
"Der Automatic Updater hat soeben Ihre Website, %1s, geprüft mit folgendem "
|
| 223 |
+
"Ergebnis:"
|
| 224 |
+
|
| 225 |
+
# @ automatic-updater
|
| 226 |
+
#: automatic-updater.php:248
|
| 227 |
+
msgid "Thanks for using the Automatic Updater plugin!"
|
| 228 |
+
msgstr "Vielen Dank für den Einsatz des Automatic Updater Plugins!"
|
| 229 |
+
|
| 230 |
+
# @ automatic-updater
|
| 231 |
+
#: automatic-updater.php:252
|
| 232 |
+
msgid "Debug Information:"
|
| 233 |
+
msgstr "Informationen für die Fehlersuche:"
|
languages/automatic-updater.pot
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 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.
|
| 6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/automatic-updater\n"
|
| 7 |
-
"POT-Creation-Date: 2012-
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
|
@@ -12,87 +12,93 @@ msgstr ""
|
|
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 14 |
|
| 15 |
-
#. #-#-#-#-# plugin.pot (Automatic Updater 0.3.
|
| 16 |
#. Plugin Name of the plugin/theme
|
| 17 |
-
#: admin.php:
|
| 18 |
msgid "Automatic Updater"
|
| 19 |
msgstr ""
|
| 20 |
|
| 21 |
-
#: admin.php:
|
| 22 |
msgid "Overview"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
-
#: admin.php:
|
| 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:
|
| 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:
|
| 39 |
msgid "A Plugin By <a href=\"%s\" target=\"_blank\">Gary</a>"
|
| 40 |
msgstr ""
|
| 41 |
|
| 42 |
-
#: admin.php:
|
| 43 |
msgid "Donations"
|
| 44 |
msgstr ""
|
| 45 |
|
| 46 |
-
#: admin.php:
|
| 47 |
msgid "Support Forums"
|
| 48 |
msgstr ""
|
| 49 |
|
| 50 |
-
#: admin.php:
|
| 51 |
msgid "You do not have sufficient permissions to access this page."
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
-
#: admin.php:
|
| 55 |
msgid "Settings updated"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
-
#: admin.php:
|
| 59 |
msgid ""
|
| 60 |
"Update WordPress Core automatically? <strong>(Strongly Recommended)</strong>"
|
| 61 |
msgstr ""
|
| 62 |
|
| 63 |
-
#: admin.php:
|
| 64 |
msgid "Update your plugins automatically?"
|
| 65 |
msgstr ""
|
| 66 |
|
| 67 |
-
#: admin.php:
|
| 68 |
-
msgid "
|
| 69 |
msgstr ""
|
| 70 |
|
| 71 |
-
#: admin.php:
|
| 72 |
msgid "Show debug information in the notification email."
|
| 73 |
msgstr ""
|
| 74 |
|
| 75 |
-
#: admin.php:
|
| 76 |
msgid "Save Changes"
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
-
#: automatic-updater.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
msgid "While trying to upgrade WordPress, we ran into the following error:"
|
| 81 |
msgstr ""
|
| 82 |
|
| 83 |
-
#: automatic-updater.php:
|
| 84 |
msgid "We're sorry it didn't work out. Please try upgrading manually, instead."
|
| 85 |
msgstr ""
|
| 86 |
|
| 87 |
-
#: automatic-updater.php:
|
| 88 |
msgid "We've successfully upgraded WordPress from version %1s to version %2s!"
|
| 89 |
msgstr ""
|
| 90 |
|
| 91 |
-
#: automatic-updater.php:
|
| 92 |
msgid "Have fun!"
|
| 93 |
msgstr ""
|
| 94 |
|
| 95 |
-
#: automatic-updater.php:
|
| 96 |
msgid "We found a plugin upgrade!"
|
| 97 |
msgid_plural "We found upgrades for some plugins!"
|
| 98 |
msgstr[0] ""
|
|
@@ -100,15 +106,15 @@ msgstr[1] ""
|
|
| 100 |
|
| 101 |
#. translators: First argument is the Plugin name, second argument is the error
|
| 102 |
#. encountered while upgrading
|
| 103 |
-
#: automatic-updater.php:
|
| 104 |
msgid "%1s: We encounted an error upgrading this plugin: %2s"
|
| 105 |
msgstr ""
|
| 106 |
|
| 107 |
-
#: automatic-updater.php:
|
| 108 |
msgid "%1s: Successfully upgraded from version %2s to %3s!"
|
| 109 |
msgstr ""
|
| 110 |
|
| 111 |
-
#: automatic-updater.php:
|
| 112 |
msgid "We found a theme upgrade!"
|
| 113 |
msgid_plural "We found upgrades for some themes!"
|
| 114 |
msgstr[0] ""
|
|
@@ -116,28 +122,28 @@ msgstr[1] ""
|
|
| 116 |
|
| 117 |
#. translators: First argument is the Theme name, second argument is the error
|
| 118 |
#. encountered while upgrading
|
| 119 |
-
#: automatic-updater.php:
|
| 120 |
msgid "%1s: We encounted an error upgrading this theme: %2s"
|
| 121 |
msgstr ""
|
| 122 |
|
| 123 |
-
#: automatic-updater.php:
|
| 124 |
msgid "WordPress Update: %1s"
|
| 125 |
msgstr ""
|
| 126 |
|
| 127 |
-
#: automatic-updater.php:
|
| 128 |
msgid "Howdy!"
|
| 129 |
msgstr ""
|
| 130 |
|
| 131 |
-
#: automatic-updater.php:
|
| 132 |
msgid ""
|
| 133 |
"Automatic Updater just ran on your site, %1s, with the following result:"
|
| 134 |
msgstr ""
|
| 135 |
|
| 136 |
-
#: automatic-updater.php:
|
| 137 |
msgid "Thanks for using the Automatic Updater plugin!"
|
| 138 |
msgstr ""
|
| 139 |
|
| 140 |
-
#: automatic-updater.php:
|
| 141 |
msgid "Debug Information:"
|
| 142 |
msgstr ""
|
| 143 |
|
| 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.2\n"
|
| 6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/automatic-updater\n"
|
| 7 |
+
"POT-Creation-Date: 2012-10-02 10:49:57+00:00\n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\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.2) #-#-#-#-#
|
| 16 |
#. Plugin Name of the plugin/theme
|
| 17 |
+
#: admin.php:4 admin.php:45
|
| 18 |
msgid "Automatic Updater"
|
| 19 |
msgstr ""
|
| 20 |
|
| 21 |
+
#: admin.php:12
|
| 22 |
msgid "Overview"
|
| 23 |
msgstr ""
|
| 24 |
|
| 25 |
+
#: admin.php:14
|
| 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:15
|
| 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:19
|
| 39 |
msgid "A Plugin By <a href=\"%s\" target=\"_blank\">Gary</a>"
|
| 40 |
msgstr ""
|
| 41 |
|
| 42 |
+
#: admin.php:20
|
| 43 |
msgid "Donations"
|
| 44 |
msgstr ""
|
| 45 |
|
| 46 |
+
#: admin.php:21
|
| 47 |
msgid "Support Forums"
|
| 48 |
msgstr ""
|
| 49 |
|
| 50 |
+
#: admin.php:27
|
| 51 |
msgid "You do not have sufficient permissions to access this page."
|
| 52 |
msgstr ""
|
| 53 |
|
| 54 |
+
#: admin.php:34
|
| 55 |
msgid "Settings updated"
|
| 56 |
msgstr ""
|
| 57 |
|
| 58 |
+
#: admin.php:38
|
| 59 |
msgid ""
|
| 60 |
"Update WordPress Core automatically? <strong>(Strongly Recommended)</strong>"
|
| 61 |
msgstr ""
|
| 62 |
|
| 63 |
+
#: admin.php:39
|
| 64 |
msgid "Update your plugins automatically?"
|
| 65 |
msgstr ""
|
| 66 |
|
| 67 |
+
#: admin.php:40
|
| 68 |
+
msgid "Update your themes automatically?"
|
| 69 |
msgstr ""
|
| 70 |
|
| 71 |
+
#: admin.php:71
|
| 72 |
msgid "Show debug information in the notification email."
|
| 73 |
msgstr ""
|
| 74 |
|
| 75 |
+
#: admin.php:72
|
| 76 |
msgid "Save Changes"
|
| 77 |
msgstr ""
|
| 78 |
|
| 79 |
+
#: automatic-updater.php:32
|
| 80 |
+
msgid ""
|
| 81 |
+
"Automatic Updater requires WordPress 3.4 or higher! Please upgrade WordPress "
|
| 82 |
+
"manually, then reactivate Automatic Updater."
|
| 83 |
+
msgstr ""
|
| 84 |
+
|
| 85 |
+
#: automatic-updater.php:126
|
| 86 |
msgid "While trying to upgrade WordPress, we ran into the following error:"
|
| 87 |
msgstr ""
|
| 88 |
|
| 89 |
+
#: automatic-updater.php:128
|
| 90 |
msgid "We're sorry it didn't work out. Please try upgrading manually, instead."
|
| 91 |
msgstr ""
|
| 92 |
|
| 93 |
+
#: automatic-updater.php:131
|
| 94 |
msgid "We've successfully upgraded WordPress from version %1s to version %2s!"
|
| 95 |
msgstr ""
|
| 96 |
|
| 97 |
+
#: automatic-updater.php:132
|
| 98 |
msgid "Have fun!"
|
| 99 |
msgstr ""
|
| 100 |
|
| 101 |
+
#: automatic-updater.php:170
|
| 102 |
msgid "We found a plugin upgrade!"
|
| 103 |
msgid_plural "We found upgrades for some plugins!"
|
| 104 |
msgstr[0] ""
|
| 106 |
|
| 107 |
#. translators: First argument is the Plugin name, second argument is the error
|
| 108 |
#. encountered while upgrading
|
| 109 |
+
#: automatic-updater.php:176
|
| 110 |
msgid "%1s: We encounted an error upgrading this plugin: %2s"
|
| 111 |
msgstr ""
|
| 112 |
|
| 113 |
+
#: automatic-updater.php:182 automatic-updater.php:235
|
| 114 |
msgid "%1s: Successfully upgraded from version %2s to %3s!"
|
| 115 |
msgstr ""
|
| 116 |
|
| 117 |
+
#: automatic-updater.php:223
|
| 118 |
msgid "We found a theme upgrade!"
|
| 119 |
msgid_plural "We found upgrades for some themes!"
|
| 120 |
msgstr[0] ""
|
| 122 |
|
| 123 |
#. translators: First argument is the Theme name, second argument is the error
|
| 124 |
#. encountered while upgrading
|
| 125 |
+
#: automatic-updater.php:229
|
| 126 |
msgid "%1s: We encounted an error upgrading this theme: %2s"
|
| 127 |
msgstr ""
|
| 128 |
|
| 129 |
+
#: automatic-updater.php:255
|
| 130 |
msgid "WordPress Update: %1s"
|
| 131 |
msgstr ""
|
| 132 |
|
| 133 |
+
#: automatic-updater.php:257
|
| 134 |
msgid "Howdy!"
|
| 135 |
msgstr ""
|
| 136 |
|
| 137 |
+
#: automatic-updater.php:259
|
| 138 |
msgid ""
|
| 139 |
"Automatic Updater just ran on your site, %1s, with the following result:"
|
| 140 |
msgstr ""
|
| 141 |
|
| 142 |
+
#: automatic-updater.php:265
|
| 143 |
msgid "Thanks for using the Automatic Updater plugin!"
|
| 144 |
msgstr ""
|
| 145 |
|
| 146 |
+
#: automatic-updater.php:269
|
| 147 |
msgid "Debug Information:"
|
| 148 |
msgstr ""
|
| 149 |
|
readme.txt
CHANGED
|
@@ -2,9 +2,10 @@
|
|
| 2 |
Contributors: pento
|
| 3 |
Donate link: http://pento.net/donate/
|
| 4 |
Tags: updates, core, plugins, themes, wordpress automatic upgrader
|
| 5 |
-
Requires at least: 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 +41,15 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
|
|
| 40 |
|
| 41 |
== Changelog ==
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
= 0.3.2 =
|
| 44 |
* ADDED: Language file for translators
|
| 45 |
* FIXED: Translations should load properly now
|
|
@@ -67,4 +77,4 @@ There are some Actions and Filters provided, check the [Documentation](http://pe
|
|
| 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.
|
| 2 |
Contributors: pento
|
| 3 |
Donate link: http://pento.net/donate/
|
| 4 |
Tags: updates, core, plugins, themes, wordpress automatic upgrader
|
| 5 |
+
Requires at least: 3.4
|
| 6 |
Tested up to: 3.5
|
| 7 |
+
Stable tag: 0.3.2
|
| 8 |
+
License: GPL2+
|
| 9 |
|
| 10 |
Automatically update WordPress, your themes and plugins! Never have to click the update button again!
|
| 11 |
|
| 41 |
|
| 42 |
== Changelog ==
|
| 43 |
|
| 44 |
+
= 0.4 =
|
| 45 |
+
* ADDED: German translation. Props [Alexander Pfabel](http://alexander.pfabel.de/)
|
| 46 |
+
* ADDED: Version check on activation, for compatibility
|
| 47 |
+
* UPDATED: Language POT file
|
| 48 |
+
* FIXED: Typo in the Settings page
|
| 49 |
+
* FIXED: Debug information in the notification email now has HTML tags stripped out
|
| 50 |
+
* FIXED: Core version check was a little too strong, and could cause updates to be missed. Relaxed a little
|
| 51 |
+
* FIXED: Checking to see if WordPress has found any updates will now occur much more frequently
|
| 52 |
+
|
| 53 |
= 0.3.2 =
|
| 54 |
* ADDED: Language file for translators
|
| 55 |
* FIXED: Translations should load properly now
|
| 77 |
|
| 78 |
== Screenshots ==
|
| 79 |
|
| 80 |
+
1. Notification emails are sent to the site admin as soon as an update is complete, confirming if the update was successful or not.
|
updater-skin.php
CHANGED
|
@@ -28,6 +28,13 @@ class Auto_Updater_Skin extends WP_Upgrader_Skin {
|
|
| 28 |
$string = vsprintf( $string, $args );
|
| 29 |
}
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
if ( empty( $string ) )
|
| 32 |
return;
|
| 33 |
|
|
@@ -35,7 +42,7 @@ class Auto_Updater_Skin extends WP_Upgrader_Skin {
|
|
| 35 |
}
|
| 36 |
|
| 37 |
function header() {
|
| 38 |
-
ob_start();
|
| 39 |
}
|
| 40 |
|
| 41 |
function footer() {
|
| 28 |
$string = vsprintf( $string, $args );
|
| 29 |
}
|
| 30 |
|
| 31 |
+
// Strip out HTML tags, and decode entities
|
| 32 |
+
$string = strip_tags( $string );
|
| 33 |
+
$string = html_entity_decode( $string );
|
| 34 |
+
$string = str_replace( '…', '...', $string );
|
| 35 |
+
|
| 36 |
+
$string = trim( $string );
|
| 37 |
+
|
| 38 |
if ( empty( $string ) )
|
| 39 |
return;
|
| 40 |
|
| 42 |
}
|
| 43 |
|
| 44 |
function header() {
|
| 45 |
+
ob_start();
|
| 46 |
}
|
| 47 |
|
| 48 |
function footer() {
|
