Skip to content

Commit

Permalink
Fix timezone issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbelletre committed Nov 22, 2024
1 parent b9a5238 commit e057814
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 76 deletions.
15 changes: 7 additions & 8 deletions acf-rrule.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
Plugin Name: ACF RRule Field
Plugin URI: https://github.com/marcbelletre/acf-rrule
Description: Create recurring rules with a single ACF field
Version: 1.5.1
Version: 1.5.2
Author: Marc Bellêtre
Author URI: https://pixelparfait.fr
License: MIT
Text Domain: acf-rrule-field
Domain Path: /lang
*/

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__.'/vendor/autoload.php';

// Exit if accessed directly
if (!defined('ABSPATH')) {
if (! defined('ABSPATH')) {
exit;
}

// Check if class already exists
if (!class_exists('acf_plugin_rrule')) :
if (! class_exists('acf_plugin_rrule')) :

class acf_plugin_rrule
{
Expand All @@ -44,7 +44,7 @@ public function __construct()
// Settings
// - these will be passed into the field class.
$this->settings = [
'version' => '1.5.1',
'version' => '1.5.2',
'url' => plugin_dir_url(__FILE__),
'path' => plugin_dir_path(__FILE__),
];
Expand All @@ -69,8 +69,8 @@ public function __construct()
public function include_field($version = false)
{
// Load ACF RRule
load_plugin_textdomain('acf-rrule-field', false, basename(dirname(__FILE__)) . '/lang');
load_muplugin_textdomain('acf-rrule-field', basename(dirname(__FILE__)) . '/lang');
load_plugin_textdomain('acf-rrule-field', false, basename(dirname(__FILE__)).'/lang');
load_muplugin_textdomain('acf-rrule-field', basename(dirname(__FILE__)).'/lang');

// Include
include_once 'fields/class-acf-field-rrule.php';
Expand All @@ -80,5 +80,4 @@ public function include_field($version = false)
// Initialize
new acf_plugin_rrule();

// class_exists check
endif;
95 changes: 63 additions & 32 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e057814

Please sign in to comment.