Post Expirator - Version 1.5.2

Version Description

Fixed shortcode timezone issue

Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

Files changed (3) hide show
  1. languages/post-expirator.pot +4 -4
  2. post-expirator.php +4 -3
  3. readme.txt +11 -1
languages/post-expirator.pot CHANGED
@@ -2,9 +2,9 @@
2
# This file is distributed under the same license as the Post Expirator package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: Post Expirator 1.5\n"
6
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-expirator\n"
7
- "POT-Creation-Date: 2012-02-26 16:23:06+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
@@ -44,7 +44,7 @@ msgstr ""
44
msgid "Never"
45
msgstr ""
46
47
- #. #-#-#-#-# plugin.pot (Post Expirator 1.5) #-#-#-#-#
48
#. Plugin Name of the plugin/theme
49
#: post-expirator.php:184 post-expirator.php:186 post-expirator.php:439
50
msgid "Post Expirator"
@@ -112,7 +112,7 @@ msgid ""
112
msgstr ""
113
114
#: post-expirator.php:523
115
- msgid "Valid [postexpiration] attributes:"
116
msgstr ""
117
118
#: post-expirator.php:525
2
# This file is distributed under the same license as the Post Expirator package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: Post Expirator 1.5.2\n"
6
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-expirator\n"
7
+ "POT-Creation-Date: 2012-03-03 23:17:36+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
44
msgid "Never"
45
msgstr ""
46
47
+ #. #-#-#-#-# plugin.pot (Post Expirator 1.5.2) #-#-#-#-#
48
#. Plugin Name of the plugin/theme
49
#: post-expirator.php:184 post-expirator.php:186 post-expirator.php:439
50
msgid "Post Expirator"
112
msgstr ""
113
114
#: post-expirator.php:523
115
+ msgid "Valid [postexpirator] attributes:"
116
msgstr ""
117
118
#: post-expirator.php:525
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: 1.5.1
8
Author URI: http://postexpirator.tuxdocs.net/
9
Translation: Thierry (http://palijn.info)
10
Text Domain: post-expirator
@@ -520,7 +520,7 @@ function postExpiratorMenuGeneral() {
520
<?php _e('The post expirator plugin sets a custom meta value, and then optionally allows you to select if you want the post changed to a draft status or deleted when it expires.','post-expirator'); ?>
521
</p>
522
<p>
523
- <?php _e('Valid [postexpiration] attributes:','post-expirator'); ?>
524
<ul>
525
<li><?php _e('type - defaults to full - valid options are full,date,time','post-expirator');?></li>
526
<li><?php _e('dateformat - format set here will override the value set on the settings page','post-expirator');?></li>
@@ -736,6 +736,7 @@ function postexpirator_shortcode($atts) {
736
else if ($type == 'time')
737
$format = $timeformat;
738
739
return date("$format",$expirationdatets);
740
}
741
add_shortcode('postexpirator', 'postexpirator_shortcode');
@@ -748,7 +749,6 @@ function postexpirator_add_footer($text) {
748
if ($displayFooter === false || $displayFooter == 0)
749
return $text;
750
751
- postExpiratorTimezoneSetup();
752
$expirationdatets = get_post_meta($post->ID,'expiration-date',true);
753
if (!is_numeric($expirationdatets))
754
return $text;
@@ -777,6 +777,7 @@ function postexpirator_add_footer($text) {
777
$expirationdateFooterStyle = $expirationdateDefaultFooterStyle;
778
}
779
780
$search = array(
781
'EXPIRATIONFULL',
782
'EXPIRATIONDATE',
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: 1.5.2
8
Author URI: http://postexpirator.tuxdocs.net/
9
Translation: Thierry (http://palijn.info)
10
Text Domain: post-expirator
520
<?php _e('The post expirator plugin sets a custom meta value, and then optionally allows you to select if you want the post changed to a draft status or deleted when it expires.','post-expirator'); ?>
521
</p>
522
<p>
523
+ <?php _e('Valid [postexpirator] attributes:','post-expirator'); ?>
524
<ul>
525
<li><?php _e('type - defaults to full - valid options are full,date,time','post-expirator');?></li>
526
<li><?php _e('dateformat - format set here will override the value set on the settings page','post-expirator');?></li>
736
else if ($type == 'time')
737
$format = $timeformat;
738
739
+ postExpiratorTimezoneSetup();
740
return date("$format",$expirationdatets);
741
}
742
add_shortcode('postexpirator', 'postexpirator_shortcode');
749
if ($displayFooter === false || $displayFooter == 0)
750
return $text;
751
752
$expirationdatets = get_post_meta($post->ID,'expiration-date',true);
753
if (!is_numeric($expirationdatets))
754
return $text;
777
$expirationdateFooterStyle = $expirationdateDefaultFooterStyle;
778
}
779
780
+ postExpiratorTimezoneSetup();
781
$search = array(
782
'EXPIRATIONFULL',
783
'EXPIRATIONDATE',
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: axelseaa
3
Tags: expire, posts, pages, schedule
4
Requires at least: 3.0
5
Tested up to: 3.3.1
6
- Stable tag: 1.5.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.
@@ -39,6 +39,11 @@ This section describes how to install the plugin and get it working.
39
40
== Changelog ==
41
42
**Version 1.5.1**
43
44
* Fixed bug that was not allow custom post types to work
@@ -101,3 +106,8 @@ NOTE: After upgrading, you may need to reset the cron schedules. Following onsc
101
**Version 1.0**
102
103
* Initial Release
3
Tags: expire, posts, pages, schedule
4
Requires at least: 3.0
5
Tested up to: 3.3.1
6
+ Stable tag: 1.5.2
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.
39
40
== Changelog ==
41
42
+ **Version 1.5.2**
43
+
44
+ * Fixed bug with shortcode that was displaying the expiration date in the incorrect timezone
45
+ * Fixed typo on settings page with incorrect shortcode name
46
+
47
**Version 1.5.1**
48
49
* Fixed bug that was not allow custom post types to work
106
**Version 1.0**
107
108
* Initial Release
109
+
110
+ == Upgrade Notice ==
111
+
112
+ = 1.5.2 =
113
+ Fixed shortcode timezone issue