Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.3
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.3',
'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