Date and Time Picker Field - Version 2.1.5

Version Description

  • Remove call to write_log() causing fatal error.
Download this release

Release Info

Developer PerS
Plugin Icon 128x128 Date and Time Picker Field
Version 2.1.5
Comparing to
See all releases

Code changes from version 2.1.4 to 2.1.5

acf-date-time-picker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Advanced Custom Fields: Date and Time Picker
4
  * Plugin URI: https://github.com/soderlind/acf-field-date-time-picker
5
  * Description: Date and Time Picker field for Advanced Custom Fields
6
- * Version: 2.1.4
7
  * Author: Per Soderlind
8
  * Author URI: http://soderlind.no
9
  * License: GPLv2 or later
@@ -11,7 +11,7 @@
11
  * Text Domain: acf-field-date-time-picker
12
  * Domain Path: /languages
13
  */
14
- define( 'ACFFIELDDATETIMEPICKER_VERSION', '2.1.4' );
15
  /**
16
  * Class acfFieldDateTimePickerPlugin
17
  */
3
  * Plugin Name: Advanced Custom Fields: Date and Time Picker
4
  * Plugin URI: https://github.com/soderlind/acf-field-date-time-picker
5
  * Description: Date and Time Picker field for Advanced Custom Fields
6
+ * Version: 2.1.5
7
  * Author: Per Soderlind
8
  * Author URI: http://soderlind.no
9
  * License: GPLv2 or later
11
  * Text Domain: acf-field-date-time-picker
12
  * Domain Path: /languages
13
  */
14
+ define( 'ACFFIELDDATETIMEPICKER_VERSION', '2.1.5' );
15
  /**
16
  * Class acfFieldDateTimePickerPlugin
17
  */
date-time-picker-v4.php CHANGED
@@ -446,8 +446,7 @@ if ( ! class_exists( 'ACFFieldDateTimePicker' ) ) :
446
 
447
  if ( false !== strpos( $locale, '-' ) ) {
448
  $l = explode( '-', $locale );
449
- // $pattern = array( '/' . $locale . '/', '/' . $l[0] . '/', '/' . $l[1] . '/' );
450
- switch ($l[0]) {
451
  case 'en':
452
  case 'fr':
453
  case 'de':
@@ -461,10 +460,7 @@ if ( ! class_exists( 'ACFFieldDateTimePicker' ) ) :
461
  } else {
462
  $pattern = array( '/' . $locale . '/' );
463
  }
464
- write_log( $pattern );
465
  $res = $this->ps_preg_filter( $pattern, '$0', $languages, -1, $count );
466
- write_log('count ' . $count );
467
- write_log( $res );
468
  return ($count) ? implode( '', $res ) : 'en';
469
  }
470
 
446
 
447
  if ( false !== strpos( $locale, '-' ) ) {
448
  $l = explode( '-', $locale );
449
+ switch ( $l[0] ) {
 
450
  case 'en':
451
  case 'fr':
452
  case 'de':
460
  } else {
461
  $pattern = array( '/' . $locale . '/' );
462
  }
 
463
  $res = $this->ps_preg_filter( $pattern, '$0', $languages, -1, $count );
 
 
464
  return ($count) ? implode( '', $res ) : 'en';
465
  }
466
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://soderlind.no/donate/
4
  Tags: acf, custom field,datepicker,timepicker
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
- Stable tag: 2.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -128,6 +128,8 @@ The Date and Time Picker field is saved as an UNIX timestamp. Use the PHP [date]
128
 
129
 
130
  == Changelog ==
 
 
131
  = 2.1.4 =
132
  * Fix for English Canadian locale which became Catalan, also fixes other en_*, fr_* and de_* locale.
133
  = 2.1.3 =
4
  Tags: acf, custom field,datepicker,timepicker
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
+ Stable tag: 2.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
128
 
129
 
130
  == Changelog ==
131
+ = 2.1.5 =
132
+ * Remove call to write_log() causing fatal error.
133
  = 2.1.4 =
134
  * Fix for English Canadian locale which became Catalan, also fixes other en_*, fr_* and de_* locale.
135
  = 2.1.3 =