Plugin Directory

Changeset 230233


Ignore:
Timestamp:
04/17/2010 05:51:49 PM (16 years ago)
Author:
jrrl
Message:

Fixed a really stupid bug that threw an error message when no expiration date was set.

Location:
atropos/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • atropos/trunk/atropos.php

    r124001 r230233  
    55Description: 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). 
    66Author: John Leavitt
    7 Version: 1.1
     7Version: 1.2
    88Author URI: http://www.jrrl.com/
    99*/
     
    190190  global $wpdb;
    191191  $olded = atropos_get_value ($id);
     192  $query = false;
    192193  if ($olded) {
    193194    if ($ed) {
     
    199200    $query = "INSERT INTO {$wpdb->postmeta} (post_id,meta_key,meta_value) VALUES ('$id','_atropos_expiration_date','$ed')";
    200201  }
    201   $wpdb->query ($query);
     202  if ($query) {
     203    $wpdb->query ($query);
     204  }
    202205}
    203206
     
    279282    }
    280283  }
     284
     285
     286
    281287  echo '</div>';
    282288}
  • atropos/trunk/readme.txt

    r124001 r230233  
    33Tags: post, expiration, date
    44Requires at least: 2.5
    5 Tested up to: 2.7.1
     5Tested up to: 2.9.2
    66Stable tag: trunk
    77
Note: See TracChangeset for help on using the changeset viewer.