Version Description
Default category selection now saves correctly on default settings screen
Download this release
Release Info
Developer | axelseaa |
Plugin | Post Expirator |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- post-expirator.php +6 -8
- readme.txt +9 -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.1.
|
8 |
Author URI: http://postexpirator.tuxdocs.net/
|
9 |
Translation: Thierry (http://palijn.info)
|
10 |
Text Domain: post-expirator
|
@@ -649,9 +649,8 @@ function postExpiratorMenuGeneral() {
|
|
649 |
exit;
|
650 |
} else {
|
651 |
//Filter Content
|
652 |
-
|
653 |
-
|
654 |
-
}
|
655 |
update_option('expirationdateDefaultDateFormat',$_POST['expired-default-date-format']);
|
656 |
update_option('expirationdateDefaultTimeFormat',$_POST['expired-default-time-format']);
|
657 |
update_option('expirationdateDisplayFooter',$_POST['expired-display-footer']);
|
@@ -729,7 +728,7 @@ function postExpiratorMenuGeneral() {
|
|
729 |
<div id="expired-custom-container" style="display: <?php echo $show; ?>;">
|
730 |
<br/><label for="expired-custom-expiration-date">Custom:</label> <input type="text" value="<?php echo $expirationdateDefaultDateCustom; ?>" name="expired-custom-expiration-date" id="expired-custom-expiration-date" />
|
731 |
<br/>
|
732 |
-
<?php _e('Set the custom value to use for the default expiration date. For information on formatting, see <a href="http://php.net/manual/en/function.strtotime.php">PHP strtotime function</a>.','post-expirator'); ?>
|
733 |
</div>
|
734 |
</td>
|
735 |
</tr>
|
@@ -806,9 +805,8 @@ function postExpiratorMenuDefaults() {
|
|
806 |
exit;
|
807 |
} else {
|
808 |
//Filter Content
|
809 |
-
|
810 |
-
|
811 |
-
}
|
812 |
$defaults = array();
|
813 |
foreach ($types as $type) {
|
814 |
if (isset($_POST['expirationdate_expiretype-'.$type])) {
|
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.1.3
|
8 |
Author URI: http://postexpirator.tuxdocs.net/
|
9 |
Translation: Thierry (http://palijn.info)
|
10 |
Text Domain: post-expirator
|
649 |
exit;
|
650 |
} else {
|
651 |
//Filter Content
|
652 |
+
$_POST = filter_input_array(INPUT_POST,FILTER_SANITIZE_STRING);
|
653 |
+
|
|
|
654 |
update_option('expirationdateDefaultDateFormat',$_POST['expired-default-date-format']);
|
655 |
update_option('expirationdateDefaultTimeFormat',$_POST['expired-default-time-format']);
|
656 |
update_option('expirationdateDisplayFooter',$_POST['expired-display-footer']);
|
728 |
<div id="expired-custom-container" style="display: <?php echo $show; ?>;">
|
729 |
<br/><label for="expired-custom-expiration-date">Custom:</label> <input type="text" value="<?php echo $expirationdateDefaultDateCustom; ?>" name="expired-custom-expiration-date" id="expired-custom-expiration-date" />
|
730 |
<br/>
|
731 |
+
<?php _e('Set the custom value to use for the default expiration date. For information on formatting, see <a href="http://php.net/manual/en/function.strtotime.php">PHP strtotime function</a>. For example, you could enter "+1 month" or "+1 week 2 days 4 hours 2 seconds" or "next Thursday."','post-expirator'); ?>
|
732 |
</div>
|
733 |
</td>
|
734 |
</tr>
|
805 |
exit;
|
806 |
} else {
|
807 |
//Filter Content
|
808 |
+
$_POST = filter_input_array(INPUT_POST,FILTER_SANITIZE_STRING);
|
809 |
+
|
|
|
810 |
$defaults = array();
|
811 |
foreach ($types as $type) {
|
812 |
if (isset($_POST['expirationdate_expiretype-'.$type])) {
|
readme.txt
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
=== Post Expirator ===
|
2 |
Contributors: axelseaa
|
|
|
3 |
Tags: expire, posts, pages, schedule
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 3.8.1
|
6 |
-
Stable tag: 2.1.
|
7 |
|
8 |
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
|
9 |
post categories.
|
@@ -47,6 +48,10 @@ This section describes how to install the plugin and get it working.
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
50 |
**Version 2.1.2**
|
51 |
|
52 |
* Security: Added form nonce for protect agaisnt possible CSRF
|
@@ -195,6 +200,9 @@ NOTE: After upgrading, you may need to reset the cron schedules. Following onsc
|
|
195 |
|
196 |
== Upgrade Notice ==
|
197 |
|
|
|
|
|
|
|
198 |
= 2.1.2 =
|
199 |
Important Update - Security Fixes - See Changelog
|
200 |
|
1 |
=== Post Expirator ===
|
2 |
Contributors: axelseaa
|
3 |
+
Donate link: http://aaron.axelsen.us/donate
|
4 |
Tags: expire, posts, pages, schedule
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 2.1.3
|
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.1.3**
|
52 |
+
|
53 |
+
* Fix: Default category selection now saves correctly on default settings screen
|
54 |
+
|
55 |
**Version 2.1.2**
|
56 |
|
57 |
* Security: Added form nonce for protect agaisnt possible CSRF
|
200 |
|
201 |
== Upgrade Notice ==
|
202 |
|
203 |
+
= 2.1.3 =
|
204 |
+
Default category selection now saves correctly on default settings screen
|
205 |
+
|
206 |
= 2.1.2 =
|
207 |
Important Update - Security Fixes - See Changelog
|
208 |
|