Version Description
Download this release
Release Info
| Developer | axelseaa |
| Plugin | |
| Version | 1.4.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.1 to 1.4.2
- languages/post-expirator.pot +281 -0
- post-expirator.php +4 -3
- readme.txt +9 -1
languages/post-expirator.pot
ADDED
|
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2010 Post Expirator
|
| 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.4.2\n"
|
| 6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-expirator\n"
|
| 7 |
+
"POT-Creation-Date: 2011-01-02 02:13: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"
|
| 11 |
+
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
| 12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 14 |
+
|
| 15 |
+
#: post-expirator.php:18
|
| 16 |
+
msgid "l F jS, Y"
|
| 17 |
+
msgstr ""
|
| 18 |
+
|
| 19 |
+
#: post-expirator.php:19
|
| 20 |
+
msgid "g:ia"
|
| 21 |
+
msgstr ""
|
| 22 |
+
|
| 23 |
+
#: post-expirator.php:20
|
| 24 |
+
msgid "Post expires at EXPIRATIONTIME on EXPIRATIONDATE"
|
| 25 |
+
msgstr ""
|
| 26 |
+
|
| 27 |
+
#: post-expirator.php:41
|
| 28 |
+
msgid "Once a Minute"
|
| 29 |
+
msgstr ""
|
| 30 |
+
|
| 31 |
+
#: post-expirator.php:53
|
| 32 |
+
msgid "Post Expirator cron schedules need to be reset"
|
| 33 |
+
msgstr ""
|
| 34 |
+
|
| 35 |
+
#: post-expirator.php:55
|
| 36 |
+
msgid "Click here to reset"
|
| 37 |
+
msgstr ""
|
| 38 |
+
|
| 39 |
+
#: post-expirator.php:137
|
| 40 |
+
msgid "Expires"
|
| 41 |
+
msgstr ""
|
| 42 |
+
|
| 43 |
+
#: post-expirator.php:153
|
| 44 |
+
msgid "Never"
|
| 45 |
+
msgstr ""
|
| 46 |
+
|
| 47 |
+
#. #-#-#-#-# plugin.pot (Post Expirator 1.4.2) #-#-#-#-#
|
| 48 |
+
#. Plugin Name of the plugin/theme
|
| 49 |
+
#: post-expirator.php:163 post-expirator.php:173 post-expirator.php:393
|
| 50 |
+
msgid "Post Expirator"
|
| 51 |
+
msgstr ""
|
| 52 |
+
|
| 53 |
+
#: post-expirator.php:205
|
| 54 |
+
msgid "Enable Post Expiration"
|
| 55 |
+
msgstr ""
|
| 56 |
+
|
| 57 |
+
#: post-expirator.php:207
|
| 58 |
+
msgid "Year"
|
| 59 |
+
msgstr ""
|
| 60 |
+
|
| 61 |
+
#: post-expirator.php:208
|
| 62 |
+
msgid "Month"
|
| 63 |
+
msgstr ""
|
| 64 |
+
|
| 65 |
+
#: post-expirator.php:209
|
| 66 |
+
msgid "Day"
|
| 67 |
+
msgstr ""
|
| 68 |
+
|
| 69 |
+
#: post-expirator.php:231
|
| 70 |
+
msgid "F"
|
| 71 |
+
msgstr ""
|
| 72 |
+
|
| 73 |
+
#: post-expirator.php:238
|
| 74 |
+
msgid "Hour"
|
| 75 |
+
msgstr ""
|
| 76 |
+
|
| 77 |
+
#: post-expirator.php:239
|
| 78 |
+
msgid "Minute"
|
| 79 |
+
msgstr ""
|
| 80 |
+
|
| 81 |
+
#: post-expirator.php:249
|
| 82 |
+
msgid "H"
|
| 83 |
+
msgstr ""
|
| 84 |
+
|
| 85 |
+
#: post-expirator.php:365 post-expirator.php:393
|
| 86 |
+
msgid "Post Expirator Options"
|
| 87 |
+
msgstr ""
|
| 88 |
+
|
| 89 |
+
#: post-expirator.php:368
|
| 90 |
+
msgid "General Settings"
|
| 91 |
+
msgstr ""
|
| 92 |
+
|
| 93 |
+
#: post-expirator.php:369 post-expirator.php:603
|
| 94 |
+
msgid "Upgrade"
|
| 95 |
+
msgstr ""
|
| 96 |
+
|
| 97 |
+
#: post-expirator.php:411
|
| 98 |
+
msgid "Saved Options!"
|
| 99 |
+
msgstr ""
|
| 100 |
+
|
| 101 |
+
#: post-expirator.php:461
|
| 102 |
+
msgid ""
|
| 103 |
+
"The post expirator plugin sets a custom meta value, and then optionally "
|
| 104 |
+
"allows you to select if you want the post changed to a draft status or "
|
| 105 |
+
"deleted when it expires."
|
| 106 |
+
msgstr ""
|
| 107 |
+
|
| 108 |
+
#: post-expirator.php:464
|
| 109 |
+
msgid "Valid [postexpiration] attributes:"
|
| 110 |
+
msgstr ""
|
| 111 |
+
|
| 112 |
+
#: post-expirator.php:466
|
| 113 |
+
msgid "type - defaults to full - valid options are full,date,time"
|
| 114 |
+
msgstr ""
|
| 115 |
+
|
| 116 |
+
#: post-expirator.php:467
|
| 117 |
+
msgid ""
|
| 118 |
+
"dateformat - format set here will override the value set on the settings page"
|
| 119 |
+
msgstr ""
|
| 120 |
+
|
| 121 |
+
#: post-expirator.php:468
|
| 122 |
+
msgid ""
|
| 123 |
+
"timeformat - format set here will override the value set on the settings page"
|
| 124 |
+
msgstr ""
|
| 125 |
+
|
| 126 |
+
#: post-expirator.php:472
|
| 127 |
+
msgid "Defaults"
|
| 128 |
+
msgstr ""
|
| 129 |
+
|
| 130 |
+
#: post-expirator.php:475
|
| 131 |
+
msgid "Set Post To:"
|
| 132 |
+
msgstr ""
|
| 133 |
+
|
| 134 |
+
#: post-expirator.php:478 post-expirator.php:489
|
| 135 |
+
msgid "Draft"
|
| 136 |
+
msgstr ""
|
| 137 |
+
|
| 138 |
+
#: post-expirator.php:479 post-expirator.php:490
|
| 139 |
+
msgid "Delete"
|
| 140 |
+
msgstr ""
|
| 141 |
+
|
| 142 |
+
#: post-expirator.php:482
|
| 143 |
+
msgid ""
|
| 144 |
+
"Select whether the post should be deleted or changed to a draft at "
|
| 145 |
+
"expiration time."
|
| 146 |
+
msgstr ""
|
| 147 |
+
|
| 148 |
+
#: post-expirator.php:486
|
| 149 |
+
msgid "Set Page To:"
|
| 150 |
+
msgstr ""
|
| 151 |
+
|
| 152 |
+
#: post-expirator.php:493
|
| 153 |
+
msgid ""
|
| 154 |
+
"Select whether the page should be deleted or changed to a draft at "
|
| 155 |
+
"expiration time."
|
| 156 |
+
msgstr ""
|
| 157 |
+
|
| 158 |
+
#: post-expirator.php:497
|
| 159 |
+
msgid "Date Format:"
|
| 160 |
+
msgstr ""
|
| 161 |
+
|
| 162 |
+
#: post-expirator.php:501
|
| 163 |
+
msgid ""
|
| 164 |
+
"The default format to use when displaying the expiration date within a post "
|
| 165 |
+
"using the [postexpirator] shortcode or within the footer. For information "
|
| 166 |
+
"on valid formatting options, see: <a href=\"http://us2.php.net/manual/en/"
|
| 167 |
+
"function.date.php\" target=\"_blank\">PHP Date Function</a>."
|
| 168 |
+
msgstr ""
|
| 169 |
+
|
| 170 |
+
#: post-expirator.php:505
|
| 171 |
+
msgid "Time Format:"
|
| 172 |
+
msgstr ""
|
| 173 |
+
|
| 174 |
+
#: post-expirator.php:509
|
| 175 |
+
msgid ""
|
| 176 |
+
"The default format to use when displaying the expiration time within a post "
|
| 177 |
+
"using the [postexpirator] shortcode or within the footer. For information "
|
| 178 |
+
"on valid formatting options, see: <a href=\"http://us2.php.net/manual/en/"
|
| 179 |
+
"function.date.php\" target=\"_blank\">PHP Date Function</a>."
|
| 180 |
+
msgstr ""
|
| 181 |
+
|
| 182 |
+
#: post-expirator.php:513
|
| 183 |
+
msgid "Post Footer Display"
|
| 184 |
+
msgstr ""
|
| 185 |
+
|
| 186 |
+
#: post-expirator.php:514
|
| 187 |
+
msgid ""
|
| 188 |
+
"Enabling this below will display the expiration date automatically at the "
|
| 189 |
+
"end of any post which is set to expire."
|
| 190 |
+
msgstr ""
|
| 191 |
+
|
| 192 |
+
#: post-expirator.php:517
|
| 193 |
+
msgid "Show in post footer?"
|
| 194 |
+
msgstr ""
|
| 195 |
+
|
| 196 |
+
#: post-expirator.php:519
|
| 197 |
+
msgid "Enabled"
|
| 198 |
+
msgstr ""
|
| 199 |
+
|
| 200 |
+
#: post-expirator.php:520
|
| 201 |
+
msgid "Disabled"
|
| 202 |
+
msgstr ""
|
| 203 |
+
|
| 204 |
+
#: post-expirator.php:522
|
| 205 |
+
msgid ""
|
| 206 |
+
"This will enable or disable displaying the post expiration date in the post "
|
| 207 |
+
"footer."
|
| 208 |
+
msgstr ""
|
| 209 |
+
|
| 210 |
+
#: post-expirator.php:526
|
| 211 |
+
msgid "Footer Contents:"
|
| 212 |
+
msgstr ""
|
| 213 |
+
|
| 214 |
+
#: post-expirator.php:530
|
| 215 |
+
msgid ""
|
| 216 |
+
"Enter the text you would like to appear at the bottom of every post that "
|
| 217 |
+
"will expire. The following placeholders will be replaced with the post "
|
| 218 |
+
"expiration date in the following format:"
|
| 219 |
+
msgstr ""
|
| 220 |
+
|
| 221 |
+
#: post-expirator.php:539
|
| 222 |
+
msgid "Footer Style:"
|
| 223 |
+
msgstr ""
|
| 224 |
+
|
| 225 |
+
#: post-expirator.php:542
|
| 226 |
+
msgid "This post will expire on"
|
| 227 |
+
msgstr ""
|
| 228 |
+
|
| 229 |
+
#: post-expirator.php:544
|
| 230 |
+
msgid "The inline css which will be used to style the footer text."
|
| 231 |
+
msgstr ""
|
| 232 |
+
|
| 233 |
+
#: post-expirator.php:549
|
| 234 |
+
msgid "Save"
|
| 235 |
+
msgstr ""
|
| 236 |
+
|
| 237 |
+
#: post-expirator.php:592
|
| 238 |
+
msgid "Cron Schedules Reset!"
|
| 239 |
+
msgstr ""
|
| 240 |
+
|
| 241 |
+
#: post-expirator.php:597
|
| 242 |
+
msgid "OK"
|
| 243 |
+
msgstr ""
|
| 244 |
+
|
| 245 |
+
#: post-expirator.php:599
|
| 246 |
+
msgid "RESET NEEDED"
|
| 247 |
+
msgstr ""
|
| 248 |
+
|
| 249 |
+
#: post-expirator.php:606
|
| 250 |
+
msgid "Reset Cron Schedules:"
|
| 251 |
+
msgstr ""
|
| 252 |
+
|
| 253 |
+
#: post-expirator.php:608
|
| 254 |
+
msgid "Reset"
|
| 255 |
+
msgstr ""
|
| 256 |
+
|
| 257 |
+
#: post-expirator.php:609
|
| 258 |
+
msgid "Status:"
|
| 259 |
+
msgstr ""
|
| 260 |
+
|
| 261 |
+
#: post-expirator.php:611
|
| 262 |
+
msgid "Resets the cron scheduler and removes any old or stray entries."
|
| 263 |
+
msgstr ""
|
| 264 |
+
|
| 265 |
+
#. Plugin URI of the plugin/theme
|
| 266 |
+
msgid "http://wordpress.org/extend/plugins/post-expirator/"
|
| 267 |
+
msgstr ""
|
| 268 |
+
|
| 269 |
+
#. Description of the plugin/theme
|
| 270 |
+
msgid ""
|
| 271 |
+
"Allows you to add an expiration date to posts which you can configure to "
|
| 272 |
+
"either delete the post or change it to a draft."
|
| 273 |
+
msgstr ""
|
| 274 |
+
|
| 275 |
+
#. Author of the plugin/theme
|
| 276 |
+
msgid "Aaron Axelsen"
|
| 277 |
+
msgstr ""
|
| 278 |
+
|
| 279 |
+
#. Author URI of the plugin/theme
|
| 280 |
+
msgid "http://postexpirator.tuxdocs.net/"
|
| 281 |
+
msgstr ""
|
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 to posts which you can configure to either delete the post or change it to a draft.
|
| 6 |
Author: Aaron Axelsen
|
| 7 |
-
Version: 1.4.
|
| 8 |
Author URI: http://postexpirator.tuxdocs.net/
|
| 9 |
Translation: Thierry (http://palijn.info)
|
| 10 |
Text Domain: post-expirator
|
|
@@ -364,7 +364,8 @@ add_action('save_post','expirationdate_update_post_meta');
|
|
| 364 |
function postExpiratorMenuTabs($tab) {
|
| 365 |
echo '<h2>'.__('Post Expirator Options','post-expirator').'</h2>';
|
| 366 |
echo '<p>';
|
| 367 |
-
|
|
|
|
| 368 |
echo '<a href="'.admin_url('options-general.php?page=post-expirator.php&tab=upgrade').'"'.($tab == 'upgrade' ? ' style="font-weight: bold; text-decoration:none;"' : '').'>'.__('Upgrade','post-expirator').'</a>';
|
| 369 |
echo '</p><hr/>';
|
| 370 |
}
|
|
@@ -410,7 +411,7 @@ function postExpiratorMenuGeneral() {
|
|
| 410 |
_e('Saved Options!','post-expirator');
|
| 411 |
echo "</p></div>";
|
| 412 |
}
|
| 413 |
-
|
| 414 |
// Get Option
|
| 415 |
$expirationdateExpiredPostStatus = get_option('expirationdateExpiredPostStatus');
|
| 416 |
if (empty($expirationdateExpiredPostStatus))
|
| 4 |
Plugin URI: http://wordpress.org/extend/plugins/post-expirator/
|
| 5 |
Description: Allows you to add an expiration date to posts which you can configure to either delete the post or change it to a draft.
|
| 6 |
Author: Aaron Axelsen
|
| 7 |
+
Version: 1.4.2
|
| 8 |
Author URI: http://postexpirator.tuxdocs.net/
|
| 9 |
Translation: Thierry (http://palijn.info)
|
| 10 |
Text Domain: post-expirator
|
| 364 |
function postExpiratorMenuTabs($tab) {
|
| 365 |
echo '<h2>'.__('Post Expirator Options','post-expirator').'</h2>';
|
| 366 |
echo '<p>';
|
| 367 |
+
if (empty($tab)) $tab = 'general';
|
| 368 |
+
echo '<a href="'.admin_url('options-general.php?page=post-expirator.php&tab=general').'"'.($tab == 'general' ? ' style="font-weight: bold; text-decoration:none;"' : '').'>'.__('General Settings','post-expirator').'</a> | ';
|
| 369 |
echo '<a href="'.admin_url('options-general.php?page=post-expirator.php&tab=upgrade').'"'.($tab == 'upgrade' ? ' style="font-weight: bold; text-decoration:none;"' : '').'>'.__('Upgrade','post-expirator').'</a>';
|
| 370 |
echo '</p><hr/>';
|
| 371 |
}
|
| 411 |
_e('Saved Options!','post-expirator');
|
| 412 |
echo "</p></div>";
|
| 413 |
}
|
| 414 |
+
postExpiratorTimezoneSetup();
|
| 415 |
// Get Option
|
| 416 |
$expirationdateExpiredPostStatus = get_option('expirationdateExpiredPostStatus');
|
| 417 |
if (empty($expirationdateExpiredPostStatus))
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: axelseaa
|
|
| 3 |
Tags: expire, posts, pages, schedule
|
| 4 |
Requires at least: 2.9
|
| 5 |
Tested up to: 3.1
|
| 6 |
-
Stable tag: 1.4.
|
| 7 |
|
| 8 |
Allows you to add an expiration date (minute) to posts which you can configure to either delete the post or change it to a draft.
|
| 9 |
|
|
@@ -17,6 +17,8 @@ The plugin hooks into the wp cron processes and runs every hour.
|
|
| 17 |
The expiration date can be displayed within the actual post by using the [postexpirator] tag. The format attribute will override the plugin
|
| 18 |
default display format. See the [PHP Date Function](http://us2.php.net/manual/en/function.date.php) for valid date/time format options.
|
| 19 |
|
|
|
|
|
|
|
| 20 |
**[postexpirator] shortcode attributes**
|
| 21 |
|
| 22 |
* type - defaults to full - valid options are full,date,time
|
|
@@ -41,6 +43,12 @@ This section describes how to install the plugin and get it working.
|
|
| 41 |
|
| 42 |
== Changelog ==
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
**Version 1.4.1**
|
| 45 |
|
| 46 |
* Added support for custom post types (Thanks Thierry)
|
| 3 |
Tags: expire, posts, pages, schedule
|
| 4 |
Requires at least: 2.9
|
| 5 |
Tested up to: 3.1
|
| 6 |
+
Stable tag: 1.4.2
|
| 7 |
|
| 8 |
Allows you to add an expiration date (minute) to posts which you can configure to either delete the post or change it to a draft.
|
| 9 |
|
| 17 |
The expiration date can be displayed within the actual post by using the [postexpirator] tag. The format attribute will override the plugin
|
| 18 |
default display format. See the [PHP Date Function](http://us2.php.net/manual/en/function.date.php) for valid date/time format options.
|
| 19 |
|
| 20 |
+
Plugin homepage [WordPress Post Expirator](http://postexpirator.tuxdocs.net).
|
| 21 |
+
|
| 22 |
**[postexpirator] shortcode attributes**
|
| 23 |
|
| 24 |
* type - defaults to full - valid options are full,date,time
|
| 43 |
|
| 44 |
== Changelog ==
|
| 45 |
|
| 46 |
+
**Version 1.4.2**
|
| 47 |
+
|
| 48 |
+
* Added post expirator POT to /languages folder
|
| 49 |
+
* Fixed issue with plugin admin navigation
|
| 50 |
+
* Fixed timezone issue on plugin options screen
|
| 51 |
+
|
| 52 |
**Version 1.4.1**
|
| 53 |
|
| 54 |
* Added support for custom post types (Thanks Thierry)
|
