Brizy – Page Builder - Version 2.3.3

Version Description

  • 2021-07-21 =
  • Fixed: Compatibility with old Brizy versions
Download this release

Release Info

Developer themefusecom
Plugin Icon 128x128 Brizy – Page Builder
Version 2.3.3
Comparing to
See all releases

Code changes from version 2.3.2 to 2.3.3

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.7<br>
5
  Requires PHP: 5.6<br>
6
- Stable tag: 2.3.2<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -118,6 +118,9 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
118
 
119
  ## Changelog
120
 
 
 
 
121
  ### 2.3.2 - 2021-07-20
122
  * Fixed: Compile popup if it was not compiled by the current plugin
123
  * Fixed: Check the assets content before sending to asset grouping library
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.7<br>
5
  Requires PHP: 5.6<br>
6
+ Stable tag: 2.3.3<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
118
 
119
  ## Changelog
120
 
121
+ ### 2.3.3 - 2021-07-21
122
+ * Fixed: Compatibility with old Brizy versions
123
+
124
  ### 2.3.2 - 2021-07-20
125
  * Fixed: Compile popup if it was not compiled by the current plugin
126
  * Fixed: Check the assets content before sending to asset grouping library
admin/membership/membership.php CHANGED
@@ -94,7 +94,7 @@ class Brizy_Admin_Membership_Membership {
94
  'parent' => $this->get_menu_id(),
95
  'id' => Brizy_Editor::prefix( '-membership-view-as-' . $role['role'] ),
96
  'title' => $role['name'],
97
- 'href' => add_query_arg( 'role', $role['role'], home_url( add_query_arg( [ $_GET ], $wp->request ) ) ),
98
  ];
99
 
100
  if ( $role['role'] == $getRole ) {
94
  'parent' => $this->get_menu_id(),
95
  'id' => Brizy_Editor::prefix( '-membership-view-as-' . $role['role'] ),
96
  'title' => $role['name'],
97
+ 'href' => add_query_arg( 'role', $role['role'], add_query_arg( [ $_GET ], wp_guess_url() ) ),
98
  ];
99
 
100
  if ( $role['role'] == $getRole ) {
brizy.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
- * Version: 2.3.2
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
@@ -19,7 +19,7 @@ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && stripos( $_SERVER['HTTP_X_FO
19
 
20
  define( 'BRIZY_DEVELOPMENT', false );
21
  define( 'BRIZY_LOG', false );
22
- define( 'BRIZY_VERSION', '2.3.2' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.3.0' );
24
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '194-wp' );
25
  define( 'BRIZY_SYNC_VERSION', '194' );
@@ -53,13 +53,9 @@ function brizy_load() {
53
 
54
  $instance = Brizy_Editor::get();
55
 
56
- $hasProInstalledAndEnabled = defined('BRIZY_PRO_VERSION');
57
- if($hasProInstalledAndEnabled && version_compare(BRIZY_PRO_VERSION,BRIZY_MINIMUM_PRO_VERSION)) {
58
- add_action( 'admin_notices', 'brizypro_upgrade_required' );
59
- return;
60
  }
61
-
62
- do_action( 'brizy_plugin_included' );
63
  }
64
 
65
  function brizy_notices() {
@@ -79,22 +75,6 @@ function brizy_notices() {
79
  <?php
80
  }
81
 
82
- /**
83
- * @param $upgrader_object
84
- * @param $options
85
- */
86
- function brizypro_upgrade_required( ) {
87
- ?>
88
- <div class="notice notice-error is-dismissible">
89
- <p>
90
- <b><?php echo strtoupper( __bt( 'brizy', 'Brizy' ) ) ?> PRO IS NOT RUNNING. </b><br>
91
- Please update <?php echo __bt( 'brizy', 'Brizy' ) ?> PRO 2.3.0 or newer.
92
- </p>
93
- </div>
94
- <?php
95
- }
96
-
97
-
98
  function brizy_upgrade_completed( $upgrader_object, $options ) {
99
  if ( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
100
  foreach ( $options['plugins'] as $plugin ) {
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
+ * Version: 2.3.3
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
19
 
20
  define( 'BRIZY_DEVELOPMENT', false );
21
  define( 'BRIZY_LOG', false );
22
+ define( 'BRIZY_VERSION', '2.3.3' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.3.0' );
24
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '194-wp' );
25
  define( 'BRIZY_SYNC_VERSION', '194' );
53
 
54
  $instance = Brizy_Editor::get();
55
 
56
+ if ( apply_filters( 'brizy_allow_plugin_included', true ) ) {
57
+ do_action( 'brizy_plugin_included' );
 
 
58
  }
 
 
59
  }
60
 
61
  function brizy_notices() {
75
  <?php
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  function brizy_upgrade_completed( $upgrader_object, $options ) {
79
  if ( $options['action'] == 'update' && $options['type'] == 'plugin' && isset( $options['plugins'] ) ) {
80
  foreach ( $options['plugins'] as $plugin ) {
compatibilities/brizy-pro-compatibility.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Brizy_Compatibilities_BrizyProCompatibility {
4
+
5
+ public function __construct() {
6
+ if(version_compare(BRIZY_MINIMUM_PRO_VERSION, BRIZY_PRO_VERSION)>0) {
7
+ $proMain = new BrizyPro_Main();
8
+ add_action( 'wp_loaded', [ $proMain, 'wordpressLoaded' ], 11 );
9
+ add_action( 'admin_notices', [ $this, 'brizypro_upgrade_required' ] );
10
+ add_action( 'brizy_allow_plugin_included', '__return_false' );
11
+ }
12
+ }
13
+
14
+ /**
15
+ * @param $upgrader_object
16
+ * @param $options
17
+ */
18
+ public function brizypro_upgrade_required() {
19
+ ?>
20
+ <div class="notice notice-error is-dismissible">
21
+ <p>
22
+ <b><?php echo strtoupper( __bt( 'brizy', 'Brizy' ) ) ?> PRO IS NOT RUNNING. </b><br>
23
+ Please update <?php echo __bt( 'brizy', 'Brizy' ) ?> PRO to the latest version.
24
+ </p>
25
+ </div>
26
+ <?php
27
+ }
28
+ }
compatibilities/init.php CHANGED
@@ -4,7 +4,7 @@ class Brizy_Compatibilities_Init {
4
 
5
  public function __construct() {
6
  $this->load_compatibilites();
7
- add_action( 'plugins_loaded', array( $this, 'action_plugins_loaded' ) );
8
  add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
9
  }
10
 
@@ -94,6 +94,10 @@ class Brizy_Compatibilities_Init {
94
  if ( class_exists( 'Tribe__Events__Main' ) ) {
95
  new Brizy_Compatibilities_TheEventsCalendar();
96
  }
 
 
 
 
97
  }
98
 
99
  public function after_setup_theme() {
4
 
5
  public function __construct() {
6
  $this->load_compatibilites();
7
+ add_action( 'plugins_loaded', array( $this, 'action_plugins_loaded' ), 9 );
8
  add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
9
  }
10
 
94
  if ( class_exists( 'Tribe__Events__Main' ) ) {
95
  new Brizy_Compatibilities_TheEventsCalendar();
96
  }
97
+
98
+ if ( defined( 'BRIZY_PRO_VERSION' ) ) {
99
+ new Brizy_Compatibilities_BrizyProCompatibility();
100
+ }
101
  }
102
 
103
  public function after_setup_theme() {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, website builder, brizy, editor, visual editor, unyson, wysiw
4
  Requires at least: 4.5
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
- Stable tag: 2.3.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -133,6 +133,9 @@ Don't worry if you make a mistake or delete something that you shouldn't have. W
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 2.3.2 - 2021-07-20 =
137
  * Fixed: Compile popup if it was not compiled by the current plugin
138
  * Fixed: Check the assets content before sending to asset grouping library
4
  Requires at least: 4.5
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
+ Stable tag: 2.3.3
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
133
 
134
  == Changelog ==
135
 
136
+ = 2.3.3 - 2021-07-21 =
137
+ * Fixed: Compatibility with old Brizy versions
138
+
139
  = 2.3.2 - 2021-07-20 =
140
  * Fixed: Compile popup if it was not compiled by the current plugin
141
  * Fixed: Check the assets content before sending to asset grouping library
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit05c577301df111a91079af31e6a45c89::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
@@ -69,7 +69,7 @@ private static $installed = array (
69
  'aliases' =>
70
  array (
71
  ),
72
- 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
73
  ),
74
  'enshrined/svg-sanitize' =>
75
  array (
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => 'fd1c7c0312e41bdcc07cadd25a9200340fb274db',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
69
  'aliases' =>
70
  array (
71
  ),
72
+ 'reference' => 'fd1c7c0312e41bdcc07cadd25a9200340fb274db',
73
  ),
74
  'enshrined/svg-sanitize' =>
75
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire8b1e15412f711adba2108f9adb46c2c8($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire8b1e15412f711adba2108f9adb46c2c8($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit05c577301df111a91079af31e6a45c89
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit05c577301df111a91079af31e6a45c89', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit05c577301df111a91079af31e6a45c89', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit05c577301df111a91079af31e6a45c89::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit05c577301df111a91079af31e6a45c89::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire05c577301df111a91079af31e6a45c89($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire05c577301df111a91079af31e6a45c89($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8
8
  {
9
  public static $files = array (
10
  '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
@@ -126,10 +126,10 @@ class ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
- $loader->prefixLengthsPsr4 = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$prefixLengthsPsr4;
130
- $loader->prefixDirsPsr4 = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$prefixDirsPsr4;
131
- $loader->prefixesPsr0 = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$prefixesPsr0;
132
- $loader->classMap = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$classMap;
133
 
134
  }, null, ClassLoader::class);
135
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit05c577301df111a91079af31e6a45c89
8
  {
9
  public static $files = array (
10
  '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
+ $loader->prefixLengthsPsr4 = ComposerStaticInit05c577301df111a91079af31e6a45c89::$prefixLengthsPsr4;
130
+ $loader->prefixDirsPsr4 = ComposerStaticInit05c577301df111a91079af31e6a45c89::$prefixDirsPsr4;
131
+ $loader->prefixesPsr0 = ComposerStaticInit05c577301df111a91079af31e6a45c89::$prefixesPsr0;
132
+ $loader->classMap = ComposerStaticInit05c577301df111a91079af31e6a45c89::$classMap;
133
 
134
  }, null, ClassLoader::class);
135
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
@@ -45,7 +45,7 @@
45
  'aliases' =>
46
  array (
47
  ),
48
- 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
49
  ),
50
  'enshrined/svg-sanitize' =>
51
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'fd1c7c0312e41bdcc07cadd25a9200340fb274db',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
45
  'aliases' =>
46
  array (
47
  ),
48
+ 'reference' => 'fd1c7c0312e41bdcc07cadd25a9200340fb274db',
49
  ),
50
  'enshrined/svg-sanitize' =>
51
  array (