Plugin Directory

Changeset 939794


Ignore:
Timestamp:
06/27/2014 06:48:26 PM (12 years ago)
Author:
shockware
Message:

Merge branch 'master' into HEAD

Location:
contact-form-7-datepicker/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • contact-form-7-datepicker/trunk/contact-form-7-datepicker.php

    r867417 r939794  
    55Description: Easily add a date field using jQuery UI's datepicker to your CF7 forms. This plugin depends on Contact Form 7.
    66Author: Aurel Canciu
    7 Version: 2.4.4
     7Version: 2.4.5
    88Author URI: https://github.com/relu/
    99*/
  • contact-form-7-datepicker/trunk/modules/date.php

    r867417 r939794  
    191191        if (! $valid) {
    192192            // Validate dd/mm/yy
    193             $value = str_replace('/', '-', $value);
    194             $valid = strtotime($value) ? true : false;
    195         }
    196 
    197         return $valid;
     193            $new_value = str_replace('/', '-', $value);
     194            $valid = strtotime($new_value) ? true : false;
     195        }
     196
     197        return apply_filters( 'cf7dp_is_valid_date', $valid, $value );
    198198    }
    199199}
  • contact-form-7-datepicker/trunk/modules/datetime.php

    r867417 r939794  
    192192        if (! $valid) {
    193193            // Validate dd/mm/yy
    194             $value = str_replace('/', '-', $value);
    195             $valid = strtotime($value) ? true : false;
    196         }
    197 
    198         return $valid;
     194            $new_value = str_replace('/', '-', $value);
     195            $valid = strtotime($new_value) ? true : false;
     196        }
     197
     198        return apply_filters( 'cf7dp_is_valid_datetime', $valid, $value );
    199199    }
    200200
  • contact-form-7-datepicker/trunk/modules/time.php

    r867417 r939794  
    183183
    184184    private static function is_valid_date($value) {
    185         return strtotime($value) ? true : false;
     185        $valid = strtotime($value) ? true : false;
     186        return apply_filters( 'cf7dp_is_valid_time', $valid, $value );
    186187    }
    187188}
  • contact-form-7-datepicker/trunk/readme.txt

    r867417 r939794  
    11=== Plugin Name ===
    2 Contributors: shockware, baden03
     2Contributors: shockware, baden03, szepeviktor
    33Tags: wordpress, datepicker, timepicker, date, time, calendar, contact form 7, forms, jqueryui
    44Requires at least: 3.6.1
    5 Tested up to: 3.8.1
    6 Stable tag: 2.4.4
     5Tested up to: 3.9.2
     6Stable tag: 2.4.5
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Changelog ==
     35
     36= 2.4.5 =
     37* Apply cf7dp_is_valid_date filter for date validation (Kudos to Viktor Szepe)
    3538
    3639= 2.4.4 =
Note: See TracChangeset for help on using the changeset viewer.