Changeset 939794
- Timestamp:
- 06/27/2014 06:48:26 PM (12 years ago)
- Location:
- contact-form-7-datepicker/trunk
- Files:
-
- 5 edited
-
contact-form-7-datepicker.php (modified) (1 diff)
-
modules/date.php (modified) (1 diff)
-
modules/datetime.php (modified) (1 diff)
-
modules/time.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-datepicker/trunk/contact-form-7-datepicker.php
r867417 r939794 5 5 Description: Easily add a date field using jQuery UI's datepicker to your CF7 forms. This plugin depends on Contact Form 7. 6 6 Author: Aurel Canciu 7 Version: 2.4. 47 Version: 2.4.5 8 8 Author URI: https://github.com/relu/ 9 9 */ -
contact-form-7-datepicker/trunk/modules/date.php
r867417 r939794 191 191 if (! $valid) { 192 192 // 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 ); 198 198 } 199 199 } -
contact-form-7-datepicker/trunk/modules/datetime.php
r867417 r939794 192 192 if (! $valid) { 193 193 // 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 ); 199 199 } 200 200 -
contact-form-7-datepicker/trunk/modules/time.php
r867417 r939794 183 183 184 184 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 ); 186 187 } 187 188 } -
contact-form-7-datepicker/trunk/readme.txt
r867417 r939794 1 1 === Plugin Name === 2 Contributors: shockware, baden03 2 Contributors: shockware, baden03, szepeviktor 3 3 Tags: wordpress, datepicker, timepicker, date, time, calendar, contact form 7, forms, jqueryui 4 4 Requires at least: 3.6.1 5 Tested up to: 3. 8.16 Stable tag: 2.4. 45 Tested up to: 3.9.2 6 Stable tag: 2.4.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 33 33 34 34 == Changelog == 35 36 = 2.4.5 = 37 * Apply cf7dp_is_valid_date filter for date validation (Kudos to Viktor Szepe) 35 38 36 39 = 2.4.4 =
Note: See TracChangeset
for help on using the changeset viewer.