Changeset 230233
- Timestamp:
- 04/17/2010 05:51:49 PM (16 years ago)
- Location:
- atropos/trunk
- Files:
-
- 2 edited
-
atropos.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
atropos/trunk/atropos.php
r124001 r230233 5 5 Description: Allows you to add an expiration date to posts. This is the last date that the post should be shown (rather than the date on which it should be deleted). 6 6 Author: John Leavitt 7 Version: 1. 17 Version: 1.2 8 8 Author URI: http://www.jrrl.com/ 9 9 */ … … 190 190 global $wpdb; 191 191 $olded = atropos_get_value ($id); 192 $query = false; 192 193 if ($olded) { 193 194 if ($ed) { … … 199 200 $query = "INSERT INTO {$wpdb->postmeta} (post_id,meta_key,meta_value) VALUES ('$id','_atropos_expiration_date','$ed')"; 200 201 } 201 $wpdb->query ($query); 202 if ($query) { 203 $wpdb->query ($query); 204 } 202 205 } 203 206 … … 279 282 } 280 283 } 284 285 286 281 287 echo '</div>'; 282 288 } -
atropos/trunk/readme.txt
r124001 r230233 3 3 Tags: post, expiration, date 4 4 Requires at least: 2.5 5 Tested up to: 2. 7.15 Tested up to: 2.9.2 6 6 Stable tag: trunk 7 7
Note: See TracChangeset
for help on using the changeset viewer.