Version Description
- Minor code cleanup
Download this release
Release Info
Developer | WhiteFirDesign |
Plugin | Automatic Plugin Updates |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- automatic-plugin-updates.php +7 -7
- readme.txt +5 -2
- screenshot-1.png +0 -0
automatic-plugin-updates.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Automatic Plugin Updates
|
4 |
-
Plugin URI:
|
5 |
Description: Enables automatic background updates of plugins. Supports excluding selected plugins from being automatically updated.
|
6 |
-
Version: 1.0.
|
7 |
Author: White Fir Design
|
8 |
-
Author URI:
|
9 |
License: GPLv2
|
10 |
Text Domain: automatic-plugin-updates
|
11 |
Domain Path: /languages
|
@@ -59,7 +59,7 @@ function check_if_excluded_plugin ($update,$item) {
|
|
59 |
return true;
|
60 |
}
|
61 |
|
62 |
-
//Enable automatic plugin updates while checking for
|
63 |
add_filter( 'auto_update_plugin', 'check_if_excluded_plugin', 10, 2 );
|
64 |
|
65 |
//Send email on plugin update
|
@@ -68,7 +68,7 @@ if ( (!get_option('automatic_plugin_updates_send_emails')) || ( get_option('auto
|
|
68 |
|
69 |
//Adds settings link to menu
|
70 |
function automatic_plugin_updates_add_pages() {
|
71 |
-
add_options_page( 'Automatic Plugin Updates', 'Automatic Plugin Updates',
|
72 |
}
|
73 |
add_action( 'admin_menu', 'automatic_plugin_updates_add_pages' );
|
74 |
|
@@ -94,7 +94,7 @@ function automatic_plugin_updates_page() {
|
|
94 |
$excluded_plugins = get_option('automatic_plugin_updates_excluded_plugins');
|
95 |
}
|
96 |
|
97 |
-
$current_plugins = get_plugins(
|
98 |
|
99 |
echo '<div class="wrap">';
|
100 |
echo '<h2>Automatic Plugin Updates</h2><p>';
|
@@ -113,7 +113,7 @@ function automatic_plugin_updates_page() {
|
|
113 |
echo '><label for="';
|
114 |
echo $key;
|
115 |
echo '">';
|
116 |
-
echo $val[Name];
|
117 |
echo '</label><br><br>';
|
118 |
}
|
119 |
echo '</fieldset></td>';
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Automatic Plugin Updates
|
4 |
+
Plugin URI: https://www.whitefirdesign.com/automatic-plugin-updates
|
5 |
Description: Enables automatic background updates of plugins. Supports excluding selected plugins from being automatically updated.
|
6 |
+
Version: 1.0.2
|
7 |
Author: White Fir Design
|
8 |
+
Author URI: https://www.whitefirdesign.com/
|
9 |
License: GPLv2
|
10 |
Text Domain: automatic-plugin-updates
|
11 |
Domain Path: /languages
|
59 |
return true;
|
60 |
}
|
61 |
|
62 |
+
//Enable automatic plugin updates while checking for excluded plugins
|
63 |
add_filter( 'auto_update_plugin', 'check_if_excluded_plugin', 10, 2 );
|
64 |
|
65 |
//Send email on plugin update
|
68 |
|
69 |
//Adds settings link to menu
|
70 |
function automatic_plugin_updates_add_pages() {
|
71 |
+
add_options_page( 'Automatic Plugin Updates', 'Automatic Plugin Updates', 'manage_options', 'automatic-plugin-updates', 'automatic_plugin_updates_page' );
|
72 |
}
|
73 |
add_action( 'admin_menu', 'automatic_plugin_updates_add_pages' );
|
74 |
|
94 |
$excluded_plugins = get_option('automatic_plugin_updates_excluded_plugins');
|
95 |
}
|
96 |
|
97 |
+
$current_plugins = get_plugins();
|
98 |
|
99 |
echo '<div class="wrap">';
|
100 |
echo '<h2>Automatic Plugin Updates</h2><p>';
|
113 |
echo '><label for="';
|
114 |
echo $key;
|
115 |
echo '">';
|
116 |
+
echo $val["Name"];
|
117 |
echo '</label><br><br>';
|
118 |
}
|
119 |
echo '</fieldset></td>';
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: WhiteFirDesign
|
3 |
Tags: plugins, updates, automatic updates
|
4 |
Requires at least: 3.8
|
5 |
-
Tested up to:
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -25,8 +25,11 @@ If you have plugins that you don't want automatically updated those can be exclu
|
|
25 |
1. Settings Page
|
26 |
|
27 |
== Changelog ==
|
|
|
|
|
|
|
28 |
= 1.0.1 =
|
29 |
-
* Fixed issue with excluded plugin check when using WordPress 3.8.2 or 3.8.3
|
30 |
|
31 |
= 1.0 =
|
32 |
* Initial release
|
2 |
Contributors: WhiteFirDesign
|
3 |
Tags: plugins, updates, automatic updates
|
4 |
Requires at least: 3.8
|
5 |
+
Tested up to: 4.0
|
6 |
Stable tag: trunk
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
25 |
1. Settings Page
|
26 |
|
27 |
== Changelog ==
|
28 |
+
= 1.0.2 =
|
29 |
+
* Minor code cleanup
|
30 |
+
|
31 |
= 1.0.1 =
|
32 |
+
* Fixed issue with excluded plugin check when using WordPress 3.8.2 or 3.8.3
|
33 |
|
34 |
= 1.0 =
|
35 |
* Initial release
|
screenshot-1.png
DELETED
Binary file
|