Post Expirator - Version 1.5.4

Version Description

Cleaned up deprecated function calls

Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

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.3\n"
6
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-expirator\n"
7
- "POT-Creation-Date: 2012-04-23 00:12:47+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,9 +44,9 @@ msgstr ""
44
msgid "Never"
45
msgstr ""
46
47
- #. #-#-#-#-# plugin.pot (Post Expirator 1.5.3) #-#-#-#-#
48
#. Plugin Name of the plugin/theme
49
- #: post-expirator.php:184 post-expirator.php:186 post-expirator.php:439
50
msgid "Post Expirator"
51
msgstr ""
52
@@ -88,84 +88,84 @@ msgid ""
88
"and override the default post action"
89
msgstr ""
90
91
- #: post-expirator.php:411 post-expirator.php:439
92
msgid "Post Expirator Options"
93
msgstr ""
94
95
- #: post-expirator.php:414
96
msgid "General Settings"
97
msgstr ""
98
99
- #: post-expirator.php:415 post-expirator.php:690
100
msgid "Upgrade"
101
msgstr ""
102
103
- #: post-expirator.php:459
104
msgid "Saved Options!"
105
msgstr ""
106
107
- #: post-expirator.php:520
108
msgid ""
109
"The post expirator plugin sets a custom meta value, and then optionally "
110
"allows you to select if you want the post changed to a draft status or "
111
"deleted when it expires."
112
msgstr ""
113
114
- #: post-expirator.php:523
115
msgid "Valid [postexpirator] attributes:"
116
msgstr ""
117
118
- #: post-expirator.php:525
119
msgid "type - defaults to full - valid options are full,date,time"
120
msgstr ""
121
122
- #: post-expirator.php:526
123
msgid ""
124
"dateformat - format set here will override the value set on the settings page"
125
msgstr ""
126
127
- #: post-expirator.php:527
128
msgid ""
129
"timeformat - format set here will override the value set on the settings page"
130
msgstr ""
131
132
- #: post-expirator.php:531
133
msgid "Defaults"
134
msgstr ""
135
136
- #: post-expirator.php:534
137
msgid "Set Post To:"
138
msgstr ""
139
140
- #: post-expirator.php:537 post-expirator.php:548
141
msgid "Draft"
142
msgstr ""
143
144
- #: post-expirator.php:538 post-expirator.php:549
145
msgid "Delete"
146
msgstr ""
147
148
- #: post-expirator.php:541
149
msgid ""
150
"Select whether the post should be deleted or changed to a draft at "
151
"expiration time."
152
msgstr ""
153
154
- #: post-expirator.php:545
155
msgid "Set Page To:"
156
msgstr ""
157
158
- #: post-expirator.php:552
159
msgid ""
160
"Select whether the page should be deleted or changed to a draft at "
161
"expiration time."
162
msgstr ""
163
164
- #: post-expirator.php:556
165
msgid "Date Format:"
166
msgstr ""
167
168
- #: post-expirator.php:560
169
msgid ""
170
"The default format to use when displaying the expiration date within a post "
171
"using the [postexpirator] shortcode or within the footer. For information "
@@ -173,11 +173,11 @@ msgid ""
173
"function.date.php\" target=\"_blank\">PHP Date Function</a>."
174
msgstr ""
175
176
- #: post-expirator.php:564
177
msgid "Time Format:"
178
msgstr ""
179
180
- #: post-expirator.php:568
181
msgid ""
182
"The default format to use when displaying the expiration time within a post "
183
"using the [postexpirator] shortcode or within the footer. For information "
@@ -185,106 +185,106 @@ msgid ""
185
"function.date.php\" target=\"_blank\">PHP Date Function</a>."
186
msgstr ""
187
188
- #: post-expirator.php:572
189
msgid "Category Expiration"
190
msgstr ""
191
192
- #: post-expirator.php:575
193
msgid "Enable Post Expiration to Category?"
194
msgstr ""
195
196
- #: post-expirator.php:577 post-expirator.php:606
197
msgid "Enabled"
198
msgstr ""
199
200
- #: post-expirator.php:578 post-expirator.php:607
201
msgid "Disabled"
202
msgstr ""
203
204
- #: post-expirator.php:580
205
msgid "This will enable or disable the ability to expire a post to a category."
206
msgstr ""
207
208
- #: post-expirator.php:584
209
msgid "Default Expiration Category"
210
msgstr ""
211
212
- #: post-expirator.php:595
213
msgid "Set's the default expiration category for the post."
214
msgstr ""
215
216
- #: post-expirator.php:600
217
msgid "Post Footer Display"
218
msgstr ""
219
220
- #: post-expirator.php:601
221
msgid ""
222
"Enabling this below will display the expiration date automatically at the "
223
"end of any post which is set to expire."
224
msgstr ""
225
226
- #: post-expirator.php:604
227
msgid "Show in post footer?"
228
msgstr ""
229
230
- #: post-expirator.php:609
231
msgid ""
232
"This will enable or disable displaying the post expiration date in the post "
233
"footer."
234
msgstr ""
235
236
- #: post-expirator.php:613
237
msgid "Footer Contents:"
238
msgstr ""
239
240
- #: post-expirator.php:617
241
msgid ""
242
"Enter the text you would like to appear at the bottom of every post that "
243
"will expire. The following placeholders will be replaced with the post "
244
"expiration date in the following format:"
245
msgstr ""
246
247
- #: post-expirator.php:626
248
msgid "Footer Style:"
249
msgstr ""
250
251
- #: post-expirator.php:629
252
msgid "This post will expire on"
253
msgstr ""
254
255
- #: post-expirator.php:631
256
msgid "The inline css which will be used to style the footer text."
257
msgstr ""
258
259
- #: post-expirator.php:636
260
msgid "Save"
261
msgstr ""
262
263
- #: post-expirator.php:679
264
msgid "Cron Schedules Reset!"
265
msgstr ""
266
267
- #: post-expirator.php:684
268
msgid "OK"
269
msgstr ""
270
271
- #: post-expirator.php:686
272
msgid "RESET NEEDED"
273
msgstr ""
274
275
- #: post-expirator.php:693
276
msgid "Reset Cron Schedules:"
277
msgstr ""
278
279
- #: post-expirator.php:695
280
msgid "Reset"
281
msgstr ""
282
283
- #: post-expirator.php:696
284
msgid "Status:"
285
msgstr ""
286
287
- #: post-expirator.php:698
288
msgid "Resets the cron scheduler and removes any old or stray entries."
289
msgstr ""
290
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.4\n"
6
"Report-Msgid-Bugs-To: http://wordpress.org/tag/post-expirator\n"
7
+ "POT-Creation-Date: 2012-05-02 11:50:32+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.4) #-#-#-#-#
48
#. Plugin Name of the plugin/theme
49
+ #: post-expirator.php:184 post-expirator.php:186 post-expirator.php:436
50
msgid "Post Expirator"
51
msgstr ""
52
88
"and override the default post action"
89
msgstr ""
90
91
+ #: post-expirator.php:408 post-expirator.php:436
92
msgid "Post Expirator Options"
93
msgstr ""
94
95
+ #: post-expirator.php:411
96
msgid "General Settings"
97
msgstr ""
98
99
+ #: post-expirator.php:412 post-expirator.php:687
100
msgid "Upgrade"
101
msgstr ""
102
103
+ #: post-expirator.php:456
104
msgid "Saved Options!"
105
msgstr ""
106
107
+ #: post-expirator.php:517
108
msgid ""
109
"The post expirator plugin sets a custom meta value, and then optionally "
110
"allows you to select if you want the post changed to a draft status or "
111
"deleted when it expires."
112
msgstr ""
113
114
+ #: post-expirator.php:520
115
msgid "Valid [postexpirator] attributes:"
116
msgstr ""
117
118
+ #: post-expirator.php:522
119
msgid "type - defaults to full - valid options are full,date,time"
120
msgstr ""
121
122
+ #: post-expirator.php:523
123
msgid ""
124
"dateformat - format set here will override the value set on the settings page"
125
msgstr ""
126
127
+ #: post-expirator.php:524
128
msgid ""
129
"timeformat - format set here will override the value set on the settings page"
130
msgstr ""
131
132
+ #: post-expirator.php:528
133
msgid "Defaults"
134
msgstr ""
135
136
+ #: post-expirator.php:531
137
msgid "Set Post To:"
138
msgstr ""
139
140
+ #: post-expirator.php:534 post-expirator.php:545
141
msgid "Draft"
142
msgstr ""
143
144
+ #: post-expirator.php:535 post-expirator.php:546
145
msgid "Delete"
146
msgstr ""
147
148
+ #: post-expirator.php:538
149
msgid ""
150
"Select whether the post should be deleted or changed to a draft at "
151
"expiration time."
152
msgstr ""
153
154
+ #: post-expirator.php:542
155
msgid "Set Page To:"
156
msgstr ""
157
158
+ #: post-expirator.php:549
159
msgid ""
160
"Select whether the page should be deleted or changed to a draft at "
161
"expiration time."
162
msgstr ""
163
164
+ #: post-expirator.php:553
165
msgid "Date Format:"
166
msgstr ""
167
168
+ #: post-expirator.php:557
169
msgid ""
170
"The default format to use when displaying the expiration date within a post "
171
"using the [postexpirator] shortcode or within the footer. For information "
173
"function.date.php\" target=\"_blank\">PHP Date Function</a>."
174
msgstr ""
175
176
+ #: post-expirator.php:561
177
msgid "Time Format:"
178
msgstr ""
179
180
+ #: post-expirator.php:565
181
msgid ""
182
"The default format to use when displaying the expiration time within a post "
183
"using the [postexpirator] shortcode or within the footer. For information "
185
"function.date.php\" target=\"_blank\">PHP Date Function</a>."
186
msgstr ""
187
188
+ #: post-expirator.php:569
189
msgid "Category Expiration"
190
msgstr ""
191
192
+ #: post-expirator.php:572
193
msgid "Enable Post Expiration to Category?"
194
msgstr ""
195
196
+ #: post-expirator.php:574 post-expirator.php:603
197
msgid "Enabled"
198
msgstr ""
199
200
+ #: post-expirator.php:575 post-expirator.php:604
201
msgid "Disabled"
202
msgstr ""
203
204
+ #: post-expirator.php:577
205
msgid "This will enable or disable the ability to expire a post to a category."
206
msgstr ""
207
208
+ #: post-expirator.php:581
209
msgid "Default Expiration Category"
210
msgstr ""
211
212
+ #: post-expirator.php:592
213
msgid "Set's the default expiration category for the post."
214
msgstr ""
215
216
+ #: post-expirator.php:597
217
msgid "Post Footer Display"
218
msgstr ""
219
220
+ #: post-expirator.php:598
221
msgid ""
222
"Enabling this below will display the expiration date automatically at the "
223
"end of any post which is set to expire."
224
msgstr ""
225
226
+ #: post-expirator.php:601
227
msgid "Show in post footer?"
228
msgstr ""
229
230
+ #: post-expirator.php:606
231
msgid ""
232
"This will enable or disable displaying the post expiration date in the post "
233
"footer."
234
msgstr ""
235
236
+ #: post-expirator.php:610
237
msgid "Footer Contents:"
238
msgstr ""
239
240
+ #: post-expirator.php:614
241
msgid ""
242
"Enter the text you would like to appear at the bottom of every post that "
243
"will expire. The following placeholders will be replaced with the post "
244
"expiration date in the following format:"
245
msgstr ""
246
247
+ #: post-expirator.php:623
248
msgid "Footer Style:"
249
msgstr ""
250
251
+ #: post-expirator.php:626
252
msgid "This post will expire on"
253
msgstr ""
254
255
+ #: post-expirator.php:628
256
msgid "The inline css which will be used to style the footer text."
257
msgstr ""
258
259
+ #: post-expirator.php:633
260
msgid "Save"
261
msgstr ""
262
263
+ #: post-expirator.php:676
264
msgid "Cron Schedules Reset!"
265
msgstr ""
266
267
+ #: post-expirator.php:681
268
msgid "OK"
269
msgstr ""
270
271
+ #: post-expirator.php:683
272
msgid "RESET NEEDED"
273
msgstr ""
274
275
+ #: post-expirator.php:690
276
msgid "Reset Cron Schedules:"
277
msgstr ""
278
279
+ #: post-expirator.php:692
280
msgid "Reset"
281
msgstr ""
282
283
+ #: post-expirator.php:693
284
msgid "Status:"
285
msgstr ""
286
287
+ #: post-expirator.php:695
288
msgid "Resets the cron scheduler and removes any old or stray entries."
289
msgstr ""
290
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.3
8
Author URI: http://postexpirator.tuxdocs.net/
9
Translation: Thierry (http://palijn.info)
10
Text Domain: post-expirator
@@ -359,13 +359,10 @@ add_action('admin_print_scripts', 'expirationdate_js_admin_header' );
359
* Get correct URL (HTTP or HTTPS)
360
*/
361
function expirationdate_get_blog_url() {
362
- global $current_blog;
363
- $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
364
-
365
if (postExpirator_is_wpmu())
366
- echo $schema.$current_blog->domain.$current_blog->path;
367
else
368
- echo get_bloginfo('siteurl').'/';
369
}
370
371
/**
@@ -436,7 +433,7 @@ function postExpiratorMenu() {
436
* Hook's to add plugin page menu
437
*/
438
function postExpiratorPluginMenu() {
439
- add_submenu_page('options-general.php',__('Post Expirator Options','post-expirator'),__('Post Expirator','post-expirator'),9,basename(__FILE__),'postExpiratorMenu');
440
}
441
add_action('admin_menu', 'postExpiratorPluginMenu');
442
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.4
8
Author URI: http://postexpirator.tuxdocs.net/
9
Translation: Thierry (http://palijn.info)
10
Text Domain: post-expirator
359
* Get correct URL (HTTP or HTTPS)
360
*/
361
function expirationdate_get_blog_url() {
362
if (postExpirator_is_wpmu())
363
+ echo network_home_url('/');
364
else
365
+ echo home_url('/');
366
}
367
368
/**
433
* Hook's to add plugin page menu
434
*/
435
function postExpiratorPluginMenu() {
436
+ add_submenu_page('options-general.php',__('Post Expirator Options','post-expirator'),__('Post Expirator','post-expirator'),'edit_plugins',basename(__FILE__),'postExpiratorMenu');
437
}
438
add_action('admin_menu', 'postExpiratorPluginMenu');
439
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
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.3
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.
@@ -45,6 +45,10 @@ This section describes how to install the plugin and get it working.
45
46
== Changelog ==
47
48
**Version 1.5.3**
49
50
* Fixed bug with sql expiration query (props to Robert & John)
@@ -119,6 +123,9 @@ NOTE: After upgrading, you may need to reset the cron schedules. Following onsc
119
120
== Upgrade Notice ==
121
122
= 1.5.3 =
123
Fixed bug with sql expiration query (props to Robert & John)
124
2
Contributors: axelseaa
3
Tags: expire, posts, pages, schedule
4
Requires at least: 3.0
5
+ Tested up to: 3.3.2
6
+ Stable tag: 1.5.4
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.
45
46
== Changelog ==
47
48
+ **Version 1.5.4**
49
+
50
+ * Cleaned up deprecated function calls
51
+
52
**Version 1.5.3**
53
54
* Fixed bug with sql expiration query (props to Robert & John)
123
124
== Upgrade Notice ==
125
126
+ = 1.5.4 =
127
+ Cleaned up deprecated function calls
128
+
129
= 1.5.3 =
130
Fixed bug with sql expiration query (props to Robert & John)
131
screenshot-1.png CHANGED
File without changes
screenshot-2.png CHANGED
File without changes
screenshot-3.png CHANGED
File without changes