Post Expirator - Version 2.2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

Files changed (2) hide show
  1. post-expirator.php +7 -3
  2. readme.txt +5 -1
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.2.0
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.2.0');
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'));
@@ -1356,6 +1356,9 @@ function postexpirator_upgrade() {
1356
if (version_compare($version,'2.2.0') == -1) {
1357
update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
1358
}
1359
}
1360
}
1361
add_action('admin_init','postexpirator_upgrade');
@@ -1528,7 +1531,8 @@ function expiration_date_save_bulk_edit() {
1528
// Only update posts that already have expiration date set. Ignore Others
1529
$ed = get_post_meta($post_id,'_expiration-date',true);
1530
if ($ed) {
1531
- update_post_meta($post_id, '_expiration-date', $ts);
1532
}
1533
}
1534
}
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.2.1
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.2.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'));
1356
if (version_compare($version,'2.2.0') == -1) {
1357
update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
1358
}
1359
+ if (version_compare($version,'2.2.1') == -1) {
1360
+ update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
1361
+ }
1362
}
1363
}
1364
add_action('admin_init','postexpirator_upgrade');
1531
// Only update posts that already have expiration date set. Ignore Others
1532
$ed = get_post_meta($post_id,'_expiration-date',true);
1533
if ($ed) {
1534
+ $opts = get_post_meta($post_id, '_expiration-date-options', true);
1535
+ _scheduleExpiratorEvent($post_id,$ts,$opts);
1536
}
1537
}
1538
}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://aaron.axelsen.us/donate
4
Tags: expire, posts, pages, schedule
5
Requires at least: 4.0
6
Tested up to: 4.7
7
- Stable tag: 2.2.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.
@@ -48,6 +48,10 @@ This section describes how to install the plugin and get it working.
48
49
== Changelog ==
50
51
**Version 2.2.0**
52
53
* New: Quick Edit - setting expiration date and toggling post expiration status can now be done via quick edit.
4
Tags: expire, posts, pages, schedule
5
Requires at least: 4.0
6
Tested up to: 4.7
7
+ Stable tag: 2.2.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.
48
49
== Changelog ==
50
51
+ **Version 2.2.1**
52
+
53
+ * Fix: Fixed issue with bulk edit not correctly updating the expiration date.
54
+
55
**Version 2.2.0**
56
57
* New: Quick Edit - setting expiration date and toggling post expiration status can now be done via quick edit.