Plugin Directory

Changeset 2412918


Ignore:
Timestamp:
11/05/2020 04:41:19 AM (5 years ago)
Author:
axelseaa
Message:

update jquery deprecated reference

Location:
post-expirator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • post-expirator/trunk/admin-edit.js

    r1666586 r2412918  
    5050    };
    5151
    52     $( '#bulk_edit' ).live( 'click', function() {
     52    $( '#bulk_edit' ).on( 'click', function() {
    5353   
    5454        // define the bulk edit row
  • post-expirator/trunk/post-expirator.php

    r2126972 r2412918  
    55Description: 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.
    66Author: Aaron Axelsen
    7 Version: 2.4.0.1
     7Version: 2.4.1
    88Author URI: http://postexpirator.tuxdocs.net/
    99Text Domain: post-expirator
     
    1818
    1919// Default Values
    20 define('POSTEXPIRATOR_VERSION','2.4.0.1');
     20define('POSTEXPIRATOR_VERSION','2.4.1');
    2121define('POSTEXPIRATOR_DATEFORMAT',__('l F jS, Y','post-expirator'));
    2222define('POSTEXPIRATOR_TIMEFORMAT',__('g:ia','post-expirator'));
     
    263263    $expirationdatets = get_post_meta($post->ID,'_expiration-date',true);
    264264    $firstsave = get_post_meta($post->ID,'_expiration-date-status',true);
     265
     266    // nonce
     267    wp_nonce_field( '__postexpirator', '_postexpiratornonce' );
     268
    265269    $default = '';
    266270    $expireType = '';
     
    286290            $defaultmonth   =   get_date_from_gmt(gmdate('Y-m-d H:i:s',$ts),'m');
    287291            $defaultday     =   get_date_from_gmt(gmdate('Y-m-d H:i:s',$ts),'d');
    288             $defaultyear    =   get_date_from_gmt(gmdate('Y-m-d H:i:s',$ts),'Y');;
     292            $defaultyear    =   get_date_from_gmt(gmdate('Y-m-d H:i:s',$ts),'Y');
    289293            $defaulthour    =   get_date_from_gmt(gmdate('Y-m-d H:i:s',$ts),'H');
    290294            $defaultminute  =   get_date_from_gmt(gmdate('Y-m-d H:i:s',$ts),'i');
     
    336340        if ($defaultyear < $currentyear) $currentyear = $defaultyear;
    337341
    338         for($i = $currentyear; $i < $currentyear + 8; $i++) {
     342        for($i = $currentyear; $i <= $currentyear + 10; $i++) {
    339343            if ($i == $defaultyear)
    340344                $selected = ' selected="selected"';
     
    15401544            update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
    15411545        }
     1546        if (version_compare($version,'2.4.1') == -1) {
     1547            update_option('postexpiratorVersion',POSTEXPIRATOR_VERSION);
     1548        }
    15421549    }
    15431550}
  • post-expirator/trunk/readme.txt

    r2126972 r2412918  
    55Requires at least: 4.0
    66Tested up to: 5.2
    7 Stable tag: 2.4.0.1
     7Stable tag: 2.4.1
    88
    99Allows 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
     
    5757
    5858== Changelog ==
     59
     60**Version 2.4.1**
     61
     62* Fix: Updated deprecated .live jQuery reference.
    5963
    6064**Version 2.4.0**
Note: See TracChangeset for help on using the changeset viewer.