Date and Time Picker Field - Version 2.0.14

Version Description

  • Added new languages/acf-field-date-time-picker.po file (note, renamed the language file)
Download this release

Release Info

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

Code changes from version 2.0.13 to 2.0.14

acf-date_time_picker.php CHANGED
@@ -3,11 +3,13 @@
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.0.13
7
  Author: Per Soderlind
8
  Author URI: http://soderlind.no
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
 
11
  */
12
 
13
 
@@ -23,11 +25,7 @@ class acf_field_date_time_picker_plugin
23
 
24
  function __construct()
25
  {
26
- // set text domain
27
- $domain = 'acf-date_time_picker';
28
- $mofile = trailingslashit(dirname(__File__)) . 'lang/' . $domain . '-' . get_locale() . '.mo';
29
- load_textdomain( $domain, $mofile );
30
-
31
 
32
  // version 4+
33
  add_action('acf/register_fields', array($this, 'register_fields'));
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.0.14
7
  Author: Per Soderlind
8
  Author URI: http://soderlind.no
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+ Text Domain: acf-field-date-time-picker
12
+ Domain Path: /languages
13
  */
14
 
15
 
25
 
26
  function __construct()
27
  {
28
+ load_plugin_textdomain( 'acf-field-date-time-picker', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
 
 
 
 
29
 
30
  // version 4+
31
  add_action('acf/register_fields', array($this, 'register_fields'));
date_time_picker-v3.php CHANGED
@@ -26,7 +26,7 @@ class acf_field_date_time_picker extends acf_Field {
26
  // set name / title
27
  $this->name = 'date_time_picker';
28
  $this->title = __( 'Date and Time Picker' );
29
- $this->domain = 'acf-date_time_picker';
30
  $this->defaults = array(
31
  'label' => __( 'Choose Time', $this->domain )
32
  , 'time_format' => 'hh:mm'
26
  // set name / title
27
  $this->name = 'date_time_picker';
28
  $this->title = __( 'Date and Time Picker' );
29
+ $this->domain = 'acf-field-date-time-picker';
30
  $this->defaults = array(
31
  'label' => __( 'Choose Time', $this->domain )
32
  , 'time_format' => 'hh:mm'
date_time_picker-v4.php CHANGED
@@ -23,7 +23,7 @@ class acf_field_date_time_picker extends acf_field
23
  $this->name = 'date_time_picker';
24
  $this->label = __('Date and Time Picker');
25
  $this->category = __("jQuery", $this->domain); // Basic, Content, Choice, etc
26
- $this->domain = 'acf-date_time_picker';
27
  $this->defaults = array(
28
  'label' => __( 'Choose Time', $this->domain )
29
  , 'time_format' => 'h:mm tt'
23
  $this->name = 'date_time_picker';
24
  $this->label = __('Date and Time Picker');
25
  $this->category = __("jQuery", $this->domain); // Basic, Content, Choice, etc
26
+ $this->domain = 'acf-field-date-time-picker';
27
  $this->defaults = array(
28
  'label' => __( 'Choose Time', $this->domain )
29
  , 'time_format' => 'h:mm tt'
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: PerS
3
  Donate link: http://soderlind.no/donate/
4
  Tags: acf, custom field,datepicker,timepicker
5
  Requires at least: 3.6
6
- Tested up to: 3.8.1
7
- Stable tag: 2.0.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -112,6 +112,8 @@ TT AM or PM for AM/PM
112
  The Date and Time Picker field is saved as an UNIX timestamp. Use the PHP [date](http://php.net/manual/en/function.date.php) function when you use it in your theme.
113
 
114
  == Changelog ==
 
 
115
  = 2.0.13 =
116
  * Fixed compatibility bug with ACF 4.3.5
117
  * NOTE: 2.0.13 requires ACF 4.3.5 or later
3
  Donate link: http://soderlind.no/donate/
4
  Tags: acf, custom field,datepicker,timepicker
5
  Requires at least: 3.6
6
+ Tested up to: 3.9
7
+ Stable tag: 2.0.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
112
  The Date and Time Picker field is saved as an UNIX timestamp. Use the PHP [date](http://php.net/manual/en/function.date.php) function when you use it in your theme.
113
 
114
  == Changelog ==
115
+ = 2.0.14 =
116
+ * Added new languages/acf-field-date-time-picker.po file (note, renamed the language file)
117
  = 2.0.13 =
118
  * Fixed compatibility bug with ACF 4.3.5
119
  * NOTE: 2.0.13 requires ACF 4.3.5 or later