Brizy – Page Builder - Version 2.3.2

Version Description

  • 2021-07-20 =
  • Fixed: Compile popup if it was not compiled by the current plugin
  • Fixed: Check the assets content before sending to asset grouping library
Download this release

Release Info

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

Code changes from version 2.3.1 to 2.3.2

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.1<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -118,6 +118,10 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
118
 
119
  ## Changelog
120
 
 
 
 
 
121
  ### 2.3.1 - 2021-07-20
122
  * Fixed: Global styles reset for text
123
  * Fixed: Fatal Error cased by loading incompatible PRO plugin versions
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
 
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
124
+
125
  ### 2.3.1 - 2021-07-20
126
  * Fixed: Global styles reset for text
127
  * Fixed: Fatal Error cased by loading incompatible PRO plugin versions
admin/popups/main.php CHANGED
@@ -170,7 +170,7 @@ class Brizy_Admin_Popups_Main {
170
  * @var Brizy_Editor_Post $brizyPopup ;
171
  */
172
 
173
- if ( $brizyPopup->get_needs_compile() ) {
174
  $brizyPopup->compile_page();
175
  $brizyPopup->saveStorage();
176
  $brizyPopup->savePost();
@@ -178,8 +178,9 @@ class Brizy_Admin_Popups_Main {
178
 
179
  if ( $context == 'head' ) {
180
  $styles = $brizyPopup->getCompiledStyles();
181
-
182
- $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($styles['free']);
 
183
  $assetGroups = apply_filters('brizy_pro_head_assets', $assetGroups, $brizyPopup);
184
 
185
  }
@@ -187,8 +188,9 @@ class Brizy_Admin_Popups_Main {
187
  if ( $context == 'body' ) {
188
 
189
  $assets = $brizyPopup->getCompiledScripts();
190
-
191
- $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($assets['free']);
 
192
  $assetGroups = apply_filters('brizy_pro_body_assets', $assetGroups, $brizyPopup);
193
 
194
  }
170
  * @var Brizy_Editor_Post $brizyPopup ;
171
  */
172
 
173
+ if ( $brizyPopup->get_needs_compile() || ! $brizyPopup->isCompiledWithCurrentVersion() ) {
174
  $brizyPopup->compile_page();
175
  $brizyPopup->saveStorage();
176
  $brizyPopup->savePost();
178
 
179
  if ( $context == 'head' ) {
180
  $styles = $brizyPopup->getCompiledStyles();
181
+ if(isset($styles['free']) && !empty($styles['free'])) {
182
+ $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($styles['free']);
183
+ }
184
  $assetGroups = apply_filters('brizy_pro_head_assets', $assetGroups, $brizyPopup);
185
 
186
  }
188
  if ( $context == 'body' ) {
189
 
190
  $assets = $brizyPopup->getCompiledScripts();
191
+ if(isset($assets['free']) && !empty($assets['free'])) {
192
+ $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($assets['free']);
193
+ }
194
  $assetGroups = apply_filters('brizy_pro_body_assets', $assetGroups, $brizyPopup);
195
 
196
  }
admin/templates.php CHANGED
@@ -47,9 +47,9 @@ class Brizy_Admin_Templates
47
  add_filter('post_row_actions', array($this, 'removeRowActions'), 10, 1);
48
  add_action('admin_init', array($this, 'addTemplateRoleCaps'), 10000);
49
  add_action('admin_enqueue_scripts', array($this, 'action_register_static'));
50
- add_filter('save_post', array($this, 'save_template_rules'), 10, 2);
51
  add_filter('pre_post_update', array($this, 'validate_template_rules'), 10, 2);
52
- add_action('admin_notices', array($this, 'save_template_rules_notices'));
53
  } elseif ( ! defined('DOING_AJAX') &&
54
  ! is_admin() &&
55
  ! isset($_REQUEST[Brizy_Editor::prefix('_media')]) &&
@@ -561,7 +561,9 @@ class Brizy_Admin_Templates
561
 
562
  $styles = $template->getCompiledStyles();
563
  $assetGroups = [];
564
- $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($styles['free']);
 
 
565
  $assetGroups = apply_filters('brizy_pro_head_assets', $assetGroups, $template);
566
 
567
  // add popups and popup assets
@@ -626,7 +628,9 @@ class Brizy_Admin_Templates
626
  // // get all assets needed for this page
627
  $scripts = $template->getCompiledScripts();
628
  $assetGroups = [];
629
- $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($scripts['free']);
 
 
630
  $assetGroups = apply_filters('brizy_pro_body_assets', $assetGroups, $template);
631
 
632
  // add popups and popup assets
@@ -862,7 +866,7 @@ class Brizy_Admin_Templates
862
  }
863
  }
864
 
865
- public function save_template_rules_notices()
866
  {
867
 
868
  global $pagenow;
@@ -979,7 +983,7 @@ class Brizy_Admin_Templates
979
  }
980
  }
981
 
982
- public function save_template_rules($post_id)
983
  {
984
  try {
985
  if(!isset($_REQUEST['brizy-template-type'])) {
47
  add_filter('post_row_actions', array($this, 'removeRowActions'), 10, 1);
48
  add_action('admin_init', array($this, 'addTemplateRoleCaps'), 10000);
49
  add_action('admin_enqueue_scripts', array($this, 'action_register_static'));
50
+ add_filter('save_post', array($this, 'saveTemplateRules'), 10, 2);
51
  add_filter('pre_post_update', array($this, 'validate_template_rules'), 10, 2);
52
+ add_action('admin_notices', array($this, 'saveTemplateRulesNotices'));
53
  } elseif ( ! defined('DOING_AJAX') &&
54
  ! is_admin() &&
55
  ! isset($_REQUEST[Brizy_Editor::prefix('_media')]) &&
561
 
562
  $styles = $template->getCompiledStyles();
563
  $assetGroups = [];
564
+ if(isset($styles['free']) && !empty($styles['free'])) {
565
+ $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($styles['free']);
566
+ }
567
  $assetGroups = apply_filters('brizy_pro_head_assets', $assetGroups, $template);
568
 
569
  // add popups and popup assets
628
  // // get all assets needed for this page
629
  $scripts = $template->getCompiledScripts();
630
  $assetGroups = [];
631
+ if(isset($scripts['free']) && !empty($scripts['free'])) {
632
+ $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($scripts['free']);
633
+ }
634
  $assetGroups = apply_filters('brizy_pro_body_assets', $assetGroups, $template);
635
 
636
  // add popups and popup assets
866
  }
867
  }
868
 
869
+ public function saveTemplateRulesNotices()
870
  {
871
 
872
  global $pagenow;
983
  }
984
  }
985
 
986
+ public function saveTemplateRules($post_id)
987
  {
988
  try {
989
  if(!isset($_REQUEST['brizy-template-type'])) {
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.1
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.1' );
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' );
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
 
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' );
public/main.php CHANGED
@@ -524,7 +524,9 @@ class Brizy_Public_Main
524
  $project = Brizy_Editor_Project::get();
525
  $styles = $this->post->getCompiledStyles();
526
  $assetGroups = [];
527
- $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($styles['free']);
 
 
528
  $assetGroups = apply_filters('brizy_pro_head_assets', $assetGroups, $this->post);
529
 
530
  // add popups and popup assets
@@ -594,7 +596,9 @@ class Brizy_Public_Main
594
  // get all assets needed for this page
595
  $scripts = $this->post->getCompiledScripts();
596
  $assetGroups = [];
597
- $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($scripts['free']);
 
 
598
  $assetGroups = apply_filters('brizy_pro_body_assets', $assetGroups, $this->post);
599
 
600
  // add popups and popup assets
524
  $project = Brizy_Editor_Project::get();
525
  $styles = $this->post->getCompiledStyles();
526
  $assetGroups = [];
527
+ if(isset($styles['free']) && !empty($styles['free'])) {
528
+ $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($styles['free']);
529
+ }
530
  $assetGroups = apply_filters('brizy_pro_head_assets', $assetGroups, $this->post);
531
 
532
  // add popups and popup assets
596
  // get all assets needed for this page
597
  $scripts = $this->post->getCompiledScripts();
598
  $assetGroups = [];
599
+ if(isset($scripts['free']) && !empty($scripts['free'])) {
600
+ $assetGroups[] = \BrizyMerge\Assets\AssetGroup::instanceFromJsonData($scripts['free']);
601
+ }
602
  $assetGroups = apply_filters('brizy_pro_body_assets', $assetGroups, $this->post);
603
 
604
  // add popups and popup assets
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.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -133,6 +133,10 @@ Don't worry if you make a mistake or delete something that you shouldn't have. W
133
 
134
  == Changelog ==
135
 
 
 
 
 
136
  = 2.3.1 - 2021-07-20 =
137
  * Fixed: Global styles reset for text
138
  * Fixed: Fatal Error cased by loading incompatible PRO plugin versions
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
 
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
139
+
140
  = 2.3.1 - 2021-07-20 =
141
  * Fixed: Global styles reset for text
142
  * Fixed: Fatal Error cased by loading incompatible PRO plugin versions
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitf569fad8f3243380aed1adbfa5e7fd00::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => 'f32eb11e484bd843d649c9a81e96ab5a564826fa',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
@@ -69,7 +69,7 @@ private static $installed = array (
69
  'aliases' =>
70
  array (
71
  ),
72
- 'reference' => 'f32eb11e484bd843d649c9a81e96ab5a564826fa',
73
  ),
74
  'enshrined/svg-sanitize' =>
75
  array (
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
69
  'aliases' =>
70
  array (
71
  ),
72
+ 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
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 ComposerAutoloaderInitf569fad8f3243380aed1adbfa5e7fd00
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitf569fad8f3243380aed1adbfa5e7fd00
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitf569fad8f3243380aed1adbfa5e7fd00', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitf569fad8f3243380aed1adbfa5e7fd00', '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\ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitf569fad8f3243380aed1adbfa5e7fd00
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequiref569fad8f3243380aed1adbfa5e7fd00($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequiref569fad8f3243380aed1adbfa5e7fd00($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 ComposerAutoloaderInit8b1e15412f711adba2108f9adb46c2c8
6
  {
7
  private static $loader;
8
 
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
  $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;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00
8
  {
9
  public static $files = array (
10
  '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
@@ -126,10 +126,10 @@ class ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
- $loader->prefixLengthsPsr4 = ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00::$prefixLengthsPsr4;
130
- $loader->prefixDirsPsr4 = ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00::$prefixDirsPsr4;
131
- $loader->prefixesPsr0 = ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00::$prefixesPsr0;
132
- $loader->classMap = ComposerStaticInitf569fad8f3243380aed1adbfa5e7fd00::$classMap;
133
 
134
  }, null, ClassLoader::class);
135
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8
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 = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$prefixLengthsPsr4;
130
+ $loader->prefixDirsPsr4 = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$prefixDirsPsr4;
131
+ $loader->prefixesPsr0 = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$prefixesPsr0;
132
+ $loader->classMap = ComposerStaticInit8b1e15412f711adba2108f9adb46c2c8::$classMap;
133
 
134
  }, null, ClassLoader::class);
135
  }
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => 'f32eb11e484bd843d649c9a81e96ab5a564826fa',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
@@ -45,7 +45,7 @@
45
  'aliases' =>
46
  array (
47
  ),
48
- 'reference' => 'f32eb11e484bd843d649c9a81e96ab5a564826fa',
49
  ),
50
  'enshrined/svg-sanitize' =>
51
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
45
  'aliases' =>
46
  array (
47
  ),
48
+ 'reference' => '3489d22a46a2d51914bb21f1fa81bfa3aa878df4',
49
  ),
50
  'enshrined/svg-sanitize' =>
51
  array (