Brizy – Page Builder - Version 2.2.3

Version Description

  • 2020-12-10 =
  • Fixed: Compatibility with WP 5.6
Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.5<br>
5
  Requires PHP: 5.6<br>
6
- Stable tag: 2.2.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.2.2 - 2020-12-09
122
  * Fixed: Compatibility with WP 5.6
123
 
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.5<br>
5
  Requires PHP: 5.6<br>
6
+ Stable tag: 2.2.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.2.3 - 2020-12-10
122
+ * Fixed: Compatibility with WP 5.6
123
+
124
  ### 2.2.2 - 2020-12-09
125
  * Fixed: Compatibility with WP 5.6
126
 
admin/static/js/script.js CHANGED
@@ -157,6 +157,11 @@ jQuery(document).ready(function ($) {
157
  var BrizyGutenberg = {
158
 
159
  insertBrizyBtn: function () {
 
 
 
 
 
160
  var guten = $( '#editor' ),
161
  html = $( '#brizy-gutenberg-btn-middle' ).html();
162
 
@@ -164,19 +169,24 @@ jQuery(document).ready(function ($) {
164
  return;
165
  }
166
 
167
- guten.find( '.edit-post-header-toolbar' ).append( $( '#brizy-gutenberg-btn-switch-mode' ).html() );
168
 
169
- if ( html ) {
170
- guten.find( '.edit-post-visual-editor .block-editor-writing-flow' ).append( html );
171
- guten.find( '.editor-post-text-editor' ).after( html );
172
- }
173
  },
174
 
175
  init: function () {
176
- var self = this;
177
- setTimeout(function () {
178
- self.insertBrizyBtn();
179
- }, 500);
 
 
 
 
 
180
  }
181
  };
182
 
157
  var BrizyGutenberg = {
158
 
159
  insertBrizyBtn: function () {
160
+
161
+ if ( $( '.brizy-buttons' ).length ) {
162
+ return;
163
+ }
164
+
165
  var guten = $( '#editor' ),
166
  html = $( '#brizy-gutenberg-btn-middle' ).html();
167
 
169
  return;
170
  }
171
 
172
+ guten.find( '.edit-post-header-toolbar' ).append( $( '#brizy-gutenberg-btn-switch-mode' ).html() );
173
 
174
+ if ( html && ! $( '.brizy-buttons-gutenberg' ).length ) {
175
+ guten.find( '.edit-post-visual-editor .block-editor-writing-flow' ).append( html );
176
+ guten.find( '.editor-post-text-editor' ).after( html );
177
+ }
178
  },
179
 
180
  init: function () {
181
+ var self = this;
182
+
183
+ if (typeof wp.data != 'undefined') {
184
+ wp.data.subscribe(function () {
185
+ setTimeout( function () {
186
+ self.insertBrizyBtn();
187
+ }, 1 );
188
+ });
189
+ }
190
  }
191
  };
192
 
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.2.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.2.2' );
23
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '163-wp' );
24
  define( 'BRIZY_SYNC_VERSION', '163' );
25
  define( 'BRIZY_FILE', __FILE__ );
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
+ * Version: 2.2.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.2.3' );
23
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '163-wp' );
24
  define( 'BRIZY_SYNC_VERSION', '163' );
25
  define( 'BRIZY_FILE', __FILE__ );
compatibilities/gutenberg.php CHANGED
@@ -88,7 +88,7 @@ class Brizy_Compatibilities_Gutenberg {
88
  $edit_url = esc_url( admin_url( 'admin-post.php?action=_brizy_admin_editor_disable&post=' . get_the_ID() ) );
89
  ?>
90
  <script id="brizy-gutenberg-btn-switch-mode" type="text/html">
91
- <div class="brizy-buttons" style="margin-top:15px;">
92
  <a class="brizy-button brizy-button--primary enable-brizy-editor" type="button"
93
  href="<?php echo $edit_url ?>">
94
  <img src="<?php echo plugins_url( '../admin/static/img/arrow.png', __FILE__ ) ?>"
88
  $edit_url = esc_url( admin_url( 'admin-post.php?action=_brizy_admin_editor_disable&post=' . get_the_ID() ) );
89
  ?>
90
  <script id="brizy-gutenberg-btn-switch-mode" type="text/html">
91
+ <div class="brizy-buttons">
92
  <a class="brizy-button brizy-button--primary enable-brizy-editor" type="button"
93
  href="<?php echo $edit_url ?>">
94
  <img src="<?php echo plugins_url( '../admin/static/img/arrow.png', __FILE__ ) ?>"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: brizy, page builder, editor, visual editor, unyson, wysiwyg, landing page,
4
  Requires at least: 4.5
5
  Tested up to: 5.5
6
  Requires PHP: 5.6
7
- Stable tag: 2.2.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -139,6 +139,9 @@ The progress you're making while building your page is always backed up in the c
139
 
140
  == Changelog ==
141
 
 
 
 
142
  = 2.2.2 - 2020-12-09 =
143
  * Fixed: Compatibility with WP 5.6
144
 
4
  Requires at least: 4.5
5
  Tested up to: 5.5
6
  Requires PHP: 5.6
7
+ Stable tag: 2.2.3
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 2.2.3 - 2020-12-10 =
143
+ * Fixed: Compatibility with WP 5.6
144
+
145
  = 2.2.2 - 2020-12-09 =
146
  * Fixed: Compatibility with WP 5.6
147
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit49e4a3171ec59d34f3e6978f4bc85ef3::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitaabac5339e429bb4a6eb2a66e81a7baf::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -29,7 +29,7 @@ private static $installed = array (
29
  'aliases' =>
30
  array (
31
  ),
32
- 'reference' => 'd7d4f7eebb5bede553405d2ef602066466a08f7d',
33
  'name' => 'brizy/brizy',
34
  ),
35
  'versions' =>
@@ -50,7 +50,7 @@ private static $installed = array (
50
  'aliases' =>
51
  array (
52
  ),
53
- 'reference' => 'd7d4f7eebb5bede553405d2ef602066466a08f7d',
54
  ),
55
  'enshrined/svg-sanitize' =>
56
  array (
29
  'aliases' =>
30
  array (
31
  ),
32
+ 'reference' => 'cdb6c48a50de988bd2da1c029c754d627e201a5f',
33
  'name' => 'brizy/brizy',
34
  ),
35
  'versions' =>
50
  'aliases' =>
51
  array (
52
  ),
53
+ 'reference' => 'cdb6c48a50de988bd2da1c029c754d627e201a5f',
54
  ),
55
  'enshrined/svg-sanitize' =>
56
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit49e4a3171ec59d34f3e6978f4bc85ef3
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit49e4a3171ec59d34f3e6978f4bc85ef3
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit49e4a3171ec59d34f3e6978f4bc85ef3', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInit49e4a3171ec59d34f3e6978f4bc85ef3', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit49e4a3171ec59d34f3e6978f4bc85ef3
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire49e4a3171ec59d34f3e6978f4bc85ef3($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire49e4a3171ec59d34f3e6978f4bc85ef3($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitaabac5339e429bb4a6eb2a66e81a7baf
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInitaabac5339e429bb4a6eb2a66e81a7baf', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
+ spl_autoload_unregister(array('ComposerAutoloaderInitaabac5339e429bb4a6eb2a66e81a7baf', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequireaabac5339e429bb4a6eb2a66e81a7baf($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequireaabac5339e429bb4a6eb2a66e81a7baf($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3
8
  {
9
  public static $files = array (
10
  '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@@ -78,10 +78,10 @@ class ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3
78
  public static function getInitializer(ClassLoader $loader)
79
  {
80
  return \Closure::bind(function () use ($loader) {
81
- $loader->prefixLengthsPsr4 = ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3::$prefixLengthsPsr4;
82
- $loader->prefixDirsPsr4 = ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3::$prefixDirsPsr4;
83
- $loader->prefixesPsr0 = ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3::$prefixesPsr0;
84
- $loader->classMap = ComposerStaticInit49e4a3171ec59d34f3e6978f4bc85ef3::$classMap;
85
 
86
  }, null, ClassLoader::class);
87
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf
8
  {
9
  public static $files = array (
10
  '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
78
  public static function getInitializer(ClassLoader $loader)
79
  {
80
  return \Closure::bind(function () use ($loader) {
81
+ $loader->prefixLengthsPsr4 = ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf::$prefixLengthsPsr4;
82
+ $loader->prefixDirsPsr4 = ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf::$prefixDirsPsr4;
83
+ $loader->prefixesPsr0 = ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf::$prefixesPsr0;
84
+ $loader->classMap = ComposerStaticInitaabac5339e429bb4a6eb2a66e81a7baf::$classMap;
85
 
86
  }, null, ClassLoader::class);
87
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'd7d4f7eebb5bede553405d2ef602066466a08f7d',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
@@ -27,7 +27,7 @@
27
  'aliases' =>
28
  array (
29
  ),
30
- 'reference' => 'd7d4f7eebb5bede553405d2ef602066466a08f7d',
31
  ),
32
  'enshrined/svg-sanitize' =>
33
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'cdb6c48a50de988bd2da1c029c754d627e201a5f',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
27
  'aliases' =>
28
  array (
29
  ),
30
+ 'reference' => 'cdb6c48a50de988bd2da1c029c754d627e201a5f',
31
  ),
32
  'enshrined/svg-sanitize' =>
33
  array (