Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GunkaArtur committed Mar 28, 2024
1 parent 4948476 commit 2e43940
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions brizy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin URI: https://brizy.io/
* Author: Brizy.io
* Author URI: https://brizy.io/
* Version: 2.4.41
* Version: 2.4.43
* Text Domain: brizy
* License: GPLv3
* Domain Path: /languages
Expand All @@ -17,24 +17,25 @@
$_SERVER['HTTPS'] = 'on';
}

define('BRIZY_DEVELOPMENT', false );
define('BRIZY_LOG', false );
define('BRIZY_VERSION', '2.4.41');
define('BRIZY_DEVELOPMENT', true);
define('BRIZY_LOG', false);
define('BRIZY_VERSION', '2.4.43');
define('BRIZY_MINIMUM_PRO_VERSION', '2.4.15');
define('BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '279-wp' );
define('BRIZY_SYNC_VERSION', '279');
define('BRIZY_MINIMUM_COMPILER_VERSION', '282-wp');
define('BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '282-wp');
define('BRIZY_SYNC_VERSION', '282');
define('BRIZY_FILE', __FILE__);
define('BRIZY_PLUGIN_BASE', plugin_basename(BRIZY_FILE));
define('BRIZY_PLUGIN_PATH', dirname(BRIZY_FILE));
define('BRIZY_PLUGIN_URL', rtrim(plugin_dir_url(BRIZY_FILE), "/"));
define('BRIZY_MAX_REVISIONS_TO_KEEP', 30);

include_once rtrim(BRIZY_PLUGIN_PATH, "/") . '/autoload.php';
include_once rtrim(BRIZY_PLUGIN_PATH, "/") . '/languages/main.php';
include_once rtrim(BRIZY_PLUGIN_PATH, "/").'/autoload.php';
include_once rtrim(BRIZY_PLUGIN_PATH, "/").'/languages/main.php';

if (BRIZY_DEVELOPMENT) {
$dotenv = new \Symfony\Component\Dotenv\Dotenv('APP_ENV');
$dotenv->load(__DIR__ . '/.env');
$dotenv->load(__DIR__.'/.env');
}

add_action('plugins_loaded', 'brizy_load');
Expand Down Expand Up @@ -118,7 +119,7 @@ function brizy_install()
Brizy_Logger::install();
add_option('brizy-regenerate-permalinks', 1);
do_action('brizy-activated');
set_transient( 'brizy_admin_notice', true, 7200 );
set_transient('brizy_admin_notice', true, 7200);
}

function brizy_clean()
Expand All @@ -130,7 +131,7 @@ function brizy_clean()

function brizy_load_text_domain()
{
load_plugin_textdomain('brizy', false, dirname(plugin_basename(__FILE__)) . '/languages');
load_plugin_textdomain('brizy', false, dirname(plugin_basename(__FILE__)).'/languages');
}

new Brizy_Compatibilities_Init();

0 comments on commit 2e43940

Please sign in to comment.