Brizy – Page Builder - Version 1.0.95

Version Description

  • 2019-10-09 =
  • Fixed: Brizy content filter
Download this release

Release Info

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

Code changes from version 1.0.94 to 1.0.95

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.2.3<br>
5
  Requires PHP: 5.6<br>
6
- Stable tag: 1.0.94<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
  ### 1.0.94 - 2019-10-08 ###
122
  * New: Added Design Kit 2.0
123
 
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.2.3<br>
5
  Requires PHP: 5.6<br>
6
+ Stable tag: 1.0.95<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
118
 
119
  ## Changelog
120
 
121
+ ### 1.0.95 - 2019-10-09 ###
122
+ * Fixed: Brizy content filter
123
+
124
  ### 1.0.94 - 2019-10-08 ###
125
  * New: Added Design Kit 2.0
126
 
admin/migrations.php CHANGED
@@ -163,7 +163,6 @@ class Brizy_Admin_Migrations {
163
  try {
164
  foreach ( $versionMigrations as $migration ) {
165
 
166
-
167
  $wpdb->query( 'START TRANSACTION ' );
168
 
169
  $migrationClass = get_class( $migration );
@@ -174,6 +173,10 @@ class Brizy_Admin_Migrations {
174
 
175
  $this->globalStorage->addMigration( $migration )->save();
176
 
 
 
 
 
177
  $wpdb->query( 'COMMIT' );
178
  }
179
  } catch ( Exception $e ) {
@@ -183,6 +186,7 @@ class Brizy_Admin_Migrations {
183
  }
184
  }
185
 
 
186
  Brizy_Logger::instance()->debug( 'Migration process successful' );
187
  }
188
  }
163
  try {
164
  foreach ( $versionMigrations as $migration ) {
165
 
 
166
  $wpdb->query( 'START TRANSACTION ' );
167
 
168
  $migrationClass = get_class( $migration );
173
 
174
  $this->globalStorage->addMigration( $migration )->save();
175
 
176
+ Brizy_Editor_Project::cleanClassCache();
177
+ Brizy_Editor_Post::cleanClassCache();
178
+ Brizy_Editor_Block::cleanClassCache();
179
+
180
  $wpdb->query( 'COMMIT' );
181
  }
182
  } catch ( Exception $e ) {
186
  }
187
  }
188
 
189
+
190
  Brizy_Logger::instance()->debug( 'Migration process successful' );
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: 1.0.94
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', '1.0.94' );
23
  define( 'BRIZY_EDITOR_VERSION', '115' );
24
  define( 'BRIZY_FILE', __FILE__ );
25
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
+ * Version: 1.0.95
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', '1.0.95' );
23
  define( 'BRIZY_EDITOR_VERSION', '115' );
24
  define( 'BRIZY_FILE', __FILE__ );
25
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
editor.php CHANGED
@@ -294,10 +294,10 @@ class Brizy_Editor {
294
  $this->handleFrontEndEditor( $post );
295
  }
296
 
297
- add_filter( 'brizy_content', array( $this, 'brizy_content' ), 10, 4 );
298
  }
299
 
300
- public function brizy_content( $content, $project, $wpPost, $contentType ) {
301
 
302
  $context = Brizy_Content_ContextFactory::createContext( $project, null, $wpPost, null );
303
  $mainProcessor = new Brizy_Content_MainProcessor( $context );
294
  $this->handleFrontEndEditor( $post );
295
  }
296
 
297
+ add_filter( 'brizy_content', array( $this, 'brizy_content' ), 10, 3 );
298
  }
299
 
300
+ public function brizy_content( $content, $project, $wpPost, $contentType = 'document' ) {
301
 
302
  $context = Brizy_Content_ContextFactory::createContext( $project, null, $wpPost, null );
303
  $mainProcessor = new Brizy_Content_MainProcessor( $context );
editor/block.php CHANGED
@@ -13,6 +13,10 @@ class Brizy_Editor_Block extends Brizy_Editor_Post {
13
 
14
  static protected $block_instance = null;
15
 
 
 
 
 
16
  /**
17
  * @param $apost
18
  *
13
 
14
  static protected $block_instance = null;
15
 
16
+ public static function cleanClassCache() {
17
+ self::$instance = array();
18
+ }
19
+
20
  /**
21
  * @param $apost
22
  *
editor/post.php CHANGED
@@ -86,6 +86,11 @@ class Brizy_Editor_Post extends Brizy_Admin_Serializable {
86
  */
87
  static private $compiled_page;
88
 
 
 
 
 
 
89
  /**
90
  * Brizy_Editor_Post constructor.
91
  *
86
  */
87
  static private $compiled_page;
88
 
89
+
90
+ public static function cleanClassCache() {
91
+ self::$instance = array();
92
+ }
93
+
94
  /**
95
  * Brizy_Editor_Post constructor.
96
  *
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.2.3
6
  Requires PHP: 5.6
7
- Stable tag: 1.0.94
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
  = 1.0.94 - 2019-10-08 =
143
  * New: Added Design Kit 2.0
144
 
4
  Requires at least: 4.5
5
  Tested up to: 5.2.3
6
  Requires PHP: 5.6
7
+ Stable tag: 1.0.95
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.95 - 2019-10-09 =
143
+ * Fixed: Brizy content filter
144
+
145
  = 1.0.94 - 2019-10-08 =
146
  * New: Added Design Kit 2.0
147
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2fa57a257e2ebc4c8793896a59ef4bdd::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit0d422c7bf8b2e1bd4f074c4e55431aec::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2fa57a257e2ebc4c8793896a59ef4bdd
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit2fa57a257e2ebc4c8793896a59ef4bdd
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit2fa57a257e2ebc4c8793896a59ef4bdd', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit2fa57a257e2ebc4c8793896a59ef4bdd', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit2fa57a257e2ebc4c8793896a59ef4bdd
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire2fa57a257e2ebc4c8793896a59ef4bdd($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire2fa57a257e2ebc4c8793896a59ef4bdd($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit0d422c7bf8b2e1bd4f074c4e55431aec
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit0d422c7bf8b2e1bd4f074c4e55431aec', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit0d422c7bf8b2e1bd4f074c4e55431aec', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit0d422c7bf8b2e1bd4f074c4e55431aec::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInit0d422c7bf8b2e1bd4f074c4e55431aec::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire0d422c7bf8b2e1bd4f074c4e55431aec($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire0d422c7bf8b2e1bd4f074c4e55431aec($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd
8
  {
9
  public static $files = array (
10
  '8ec4222c68e580a23520eef4abe4380f' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
@@ -52,9 +52,9 @@ class ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd
52
  public static function getInitializer(ClassLoader $loader)
53
  {
54
  return \Closure::bind(function () use ($loader) {
55
- $loader->prefixLengthsPsr4 = ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd::$prefixLengthsPsr4;
56
- $loader->prefixDirsPsr4 = ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd::$prefixDirsPsr4;
57
- $loader->prefixesPsr0 = ComposerStaticInit2fa57a257e2ebc4c8793896a59ef4bdd::$prefixesPsr0;
58
 
59
  }, null, ClassLoader::class);
60
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit0d422c7bf8b2e1bd4f074c4e55431aec
8
  {
9
  public static $files = array (
10
  '8ec4222c68e580a23520eef4abe4380f' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
52
  public static function getInitializer(ClassLoader $loader)
53
  {
54
  return \Closure::bind(function () use ($loader) {
55
+ $loader->prefixLengthsPsr4 = ComposerStaticInit0d422c7bf8b2e1bd4f074c4e55431aec::$prefixLengthsPsr4;
56
+ $loader->prefixDirsPsr4 = ComposerStaticInit0d422c7bf8b2e1bd4f074c4e55431aec::$prefixDirsPsr4;
57
+ $loader->prefixesPsr0 = ComposerStaticInit0d422c7bf8b2e1bd4f074c4e55431aec::$prefixesPsr0;
58
 
59
  }, null, ClassLoader::class);
60
  }