Post Expirator - Version 2.4.0

Version Description

Download this release

Release Info

Developer axelseaa
Plugin Icon 128x128 Post Expirator
Version 2.4.0
Comparing to
See all releases

Code changes from version 2.3.1.1 to 2.4.0

Files changed (2) hide show
  1. post-expirator.php +8 -5
  2. readme.txt +6 -2
post-expirator.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Post Expirator
4
Plugin URI: http://wordpress.org/extend/plugins/post-expirator/
5
Description: Allows you to add an expiration date (minute) to posts which you can configure to either delete the post, change it to a draft, or update the post categories at expiration time.
6
Author: Aaron Axelsen
7
- Version: 2.3.1.1
8
Author URI: http://postexpirator.tuxdocs.net/
9
Text Domain: post-expirator
10
*/
@@ -17,7 +17,7 @@ function postExpirator_init() {
17
add_action('plugins_loaded', 'postExpirator_init');
18
19
// Default Values
20
- define('POSTEXPIRATOR_VERSION','2.3.1.1');
21
define('POSTEXPIRATOR_DATEFORMAT',__('l F jS, Y','post-expirator'));
22
define('POSTEXPIRATOR_TIMEFORMAT',__('g:ia','post-expirator'));
23
define('POSTEXPIRATOR_FOOTERCONTENTS',__('Post expires at EXPIRATIONTIME on EXPIRATIONDATE','post-expirator'));
@@ -30,6 +30,7 @@ define('POSTEXPIRATOR_EXPIREDEFAULT','null');
30
31
function postExpirator_plugin_action_links($links, $file) {
32
$this_plugin = basename(plugin_dir_url(__FILE__)) . '/post-expirator.php';
33
if($file == $this_plugin) {
34
$links[] = '<a href="options-general.php?page=post-expirator">' . __('Settings', 'post-expirator') . '</a>';
35
}
@@ -1164,9 +1165,8 @@ function postExpiratorMenuDefaults() {
1164
$expiredactivemetaenabled = 'checked = "checked"';
1165
$expiredactivemetadisabled = '';
1166
}
1167
- if (!isset($defaults['taxonomy'])) {
1168
- $defaults['taxonomy'] = false;
1169
- }
1170
?>
1171
<table class="form-table">
1172
<tr valign="top">
@@ -1537,6 +1537,9 @@ function postexpirator_upgrade() {
1537
if (version_compare($version,'2.3.1.1') == -1) {
1538
update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
1539
}
1540
}
1541
}
1542
add_action('admin_init','postexpirator_upgrade');
4
Plugin URI: http://wordpress.org/extend/plugins/post-expirator/
5
Description: Allows you to add an expiration date (minute) to posts which you can configure to either delete the post, change it to a draft, or update the post categories at expiration time.
6
Author: Aaron Axelsen
7
+ Version: 2.4
8
Author URI: http://postexpirator.tuxdocs.net/
9
Text Domain: post-expirator
10
*/
17
add_action('plugins_loaded', 'postExpirator_init');
18
19
// Default Values
20
+ define('POSTEXPIRATOR_VERSION','2.4');
21
define('POSTEXPIRATOR_DATEFORMAT',__('l F jS, Y','post-expirator'));
22
define('POSTEXPIRATOR_TIMEFORMAT',__('g:ia','post-expirator'));
23
define('POSTEXPIRATOR_FOOTERCONTENTS',__('Post expires at EXPIRATIONTIME on EXPIRATIONDATE','post-expirator'));
30
31
function postExpirator_plugin_action_links($links, $file) {
32
$this_plugin = basename(plugin_dir_url(__FILE__)) . '/post-expirator.php';
33
+ $links = array();
34
if($file == $this_plugin) {
35
$links[] = '<a href="options-general.php?page=post-expirator">' . __('Settings', 'post-expirator') . '</a>';
36
}
1165
$expiredactivemetaenabled = 'checked = "checked"';
1166
$expiredactivemetadisabled = '';
1167
}
1168
+ if (!isset($defaults['taxonomy'])) $defaults['taxonomy'] = false;
1169
+ if (!isset($defaults['emailnotification'])) $defaults['emailnotification'] = '';
1170
?>
1171
<table class="form-table">
1172
<tr valign="top">
1537
if (version_compare($version,'2.3.1.1') == -1) {
1538
update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
1539
}
1540
+ if (version_compare($version,'2.4') == -1) {
1541
+ update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
1542
+ }
1543
}
1544
}
1545
add_action('admin_init','postexpirator_upgrade');
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: axelseaa
3
Donate link: http://aaron.axelsen.us/donate
4
Tags: expire, posts, pages, schedule
5
Requires at least: 4.0
6
- Tested up to: 4.8
7
- Stable tag: 2.3.1.1
8
9
Allows you to add an expiration date to posts which you can configure to either delete the post, change it to a draft, or update the
10
post categories.
@@ -57,6 +57,10 @@ This section describes how to install the plugin and get it working.
57
58
== Changelog ==
59
60
**Version 2.3.1**
61
62
* Fix: Fixed PHP Error that snuck in on some installations.
3
Donate link: http://aaron.axelsen.us/donate
4
Tags: expire, posts, pages, schedule
5
Requires at least: 4.0
6
+ Tested up to: 5.2
7
+ Stable tag: 2.4.0
8
9
Allows you to add an expiration date to posts which you can configure to either delete the post, change it to a draft, or update the
10
post categories.
57
58
== Changelog ==
59
60
+ **Version 2.4.0**
61
+
62
+ * Fix: Fixed PHP Error with PHP 7.
63
+
64
**Version 2.3.1**
65
66
* Fix: Fixed PHP Error that snuck in on some installations.