Brizy – Page Builder - Version 1.0.105

Version Description

  • 2019-11-21 =
  • Fixed: mkdir warning for folders that already exists
  • Fixed: Usage of PHP_INT_MIN constant
Download this release

Release Info

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

Code changes from version 1.0.104 to 1.0.105

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.104<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
  ### 1.0.104 - 2019-11-18 ###
122
  * Fixed: Row negative margin
123
  * Fixed: Sidebar scroll and reorder blocks
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.105<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.105 - 2019-11-21 ###
122
+ * Fixed: mkdir warning for folders that already exists
123
+ * Fixed: Usage of PHP_INT_MIN constant
124
+
125
  ### 1.0.104 - 2019-11-18 ###
126
  * Fixed: Row negative margin
127
  * Fixed: Sidebar scroll and reorder blocks
admin/popups/main.php CHANGED
@@ -26,7 +26,7 @@ class Brizy_Admin_Popups_Main {
26
  }
27
 
28
  public function initialize() {
29
- add_filter( 'brizy_content', array( $this, 'insertPopupsHtml' ), PHP_INT_MIN, 4 );
30
  add_action( 'brizy_after_enabled_for_post', array( $this, 'afterBrizyEnabledForPopup' ) );
31
 
32
  if ( is_admin() ) {
26
  }
27
 
28
  public function initialize() {
29
+ add_filter( 'brizy_content', array( $this, 'insertPopupsHtml' ), -999999, 4 );
30
  add_action( 'brizy_after_enabled_for_post', array( $this, 'afterBrizyEnabledForPopup' ) );
31
 
32
  if ( is_admin() ) {
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.104
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.104' );
23
  define( 'BRIZY_EDITOR_VERSION', '124' );
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.105
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.105' );
23
  define( 'BRIZY_EDITOR_VERSION', '124' );
24
  define( 'BRIZY_FILE', __FILE__ );
25
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
editor/block-screenshot-api.php CHANGED
@@ -197,7 +197,7 @@ class Brizy_Editor_BlockScreenshotApi extends Brizy_Admin_AbstractApi {
197
  $path = dirname( $thumbnailFullPath );
198
 
199
  if ( ! file_exists( $path ) ) {
200
- if ( ! mkdir( $path, 0755, true ) && ! is_dir( $path ) ) {
201
  return false;
202
  }
203
  }
197
  $path = dirname( $thumbnailFullPath );
198
 
199
  if ( ! file_exists( $path ) ) {
200
+ if ( ! @mkdir( $path, 0755, true ) ) {
201
  return false;
202
  }
203
  }
editor/crop-cache-media.php CHANGED
@@ -141,7 +141,7 @@ class Brizy_Editor_CropCacheMedia extends Brizy_Editor_Asset_StaticFile {
141
  throw new Exception( 'Crop not forced.' );
142
  }
143
 
144
- if ( ! mkdir( $resized_page_asset_path, 0755, true ) && ! is_dir( $resized_page_asset_path ) ) {
145
  throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $resized_page_asset_path ) );
146
  }
147
 
@@ -161,7 +161,7 @@ class Brizy_Editor_CropCacheMedia extends Brizy_Editor_Asset_StaticFile {
161
  };
162
  add_filter( 'jpeg_quality', $closure );
163
 
164
- if ( ! mkdir( $hq_image_path_dir, 0755, true ) && ! is_dir( $hq_image_path_dir ) ) {
165
  throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $hq_image_path_dir ) );
166
  }
167
 
@@ -176,7 +176,7 @@ class Brizy_Editor_CropCacheMedia extends Brizy_Editor_Asset_StaticFile {
176
  $hq_wp_file_exists = file_exists( $hq_image_full_path );
177
  if ( $force_optimize && $hq_wp_file_exists ) {
178
  $optimizer = new Brizy_Editor_Asset_Optimize_Optimizer();
179
- if ( ! mkdir( $optimized_image_path_dir, 0755, true ) && ! is_dir( $optimized_image_path_dir ) ) {
180
  throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $optimized_image_path_dir ) );
181
  }
182
 
141
  throw new Exception( 'Crop not forced.' );
142
  }
143
 
144
+ if ( !file_exists( $resized_page_asset_path ) && ! @mkdir( $resized_page_asset_path, 0755, true ) && ! is_dir( $resized_page_asset_path ) ) {
145
  throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $resized_page_asset_path ) );
146
  }
147
 
161
  };
162
  add_filter( 'jpeg_quality', $closure );
163
 
164
+ if ( !file_exists( $hq_image_path_dir ) && ! @mkdir( $hq_image_path_dir, 0755, true ) && ! is_dir( $hq_image_path_dir ) ) {
165
  throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $hq_image_path_dir ) );
166
  }
167
 
176
  $hq_wp_file_exists = file_exists( $hq_image_full_path );
177
  if ( $force_optimize && $hq_wp_file_exists ) {
178
  $optimizer = new Brizy_Editor_Asset_Optimize_Optimizer();
179
+ if ( !file_exists( $optimized_image_path_dir ) && ! @mkdir( $optimized_image_path_dir, 0755, true ) && ! is_dir( $optimized_image_path_dir ) ) {
180
  throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $optimized_image_path_dir ) );
181
  }
182
 
editor/uploads-dir.php CHANGED
@@ -57,7 +57,7 @@ class Brizy_Editor_UploadsDir {
57
  $path .= $rel;
58
  }
59
 
60
- if ( ! file_exists( $path ) && ! mkdir( $path ) && ! is_dir( $path ) ) {
61
  throw new Brizy_Editor_Exceptions_AccessDenied(
62
  'Cannot create static directory. Please check permissions'
63
  );
57
  $path .= $rel;
58
  }
59
 
60
+ if ( ! file_exists( $path ) && ! @mkdir( $path ) && ! is_dir( $path ) ) {
61
  throw new Brizy_Editor_Exceptions_AccessDenied(
62
  'Cannot create static directory. Please check permissions'
63
  );
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.104
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -139,6 +139,10 @@ The progress you're making while building your page is always backed up in the c
139
 
140
  == Changelog ==
141
 
 
 
 
 
142
  = 1.0.104 - 2019-11-18 =
143
  * Fixed: Row negative margin
144
  * Fixed: Sidebar scroll and reorder blocks
4
  Requires at least: 4.5
5
  Tested up to: 5.2.3
6
  Requires PHP: 5.6
7
+ Stable tag: 1.0.105
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.105 - 2019-11-21 =
143
+ * Fixed: mkdir warning for folders that already exists
144
+ * Fixed: Usage of PHP_INT_MIN constant
145
+
146
  = 1.0.104 - 2019-11-18 =
147
  * Fixed: Row negative margin
148
  * Fixed: Sidebar scroll and reorder blocks
twig-engine.php CHANGED
@@ -116,7 +116,9 @@ class Brizy_TwigEngine {
116
 
117
  Brizy_Admin_FileSystem::deleteAllDirectories( $twig_cache_root );
118
 
119
- @mkdir( $twig_cache, 0755, true );
 
 
120
  }
121
 
122
  if ( file_exists( $twig_cache ) && is_writeable( $twig_cache ) ) {
116
 
117
  Brizy_Admin_FileSystem::deleteAllDirectories( $twig_cache_root );
118
 
119
+ if ( !file_exists( $twig_cache ) && ! @mkdir( $twig_cache, 0755, true ) && ! is_dir( $twig_cache ) ) {
120
+ throw new \RuntimeException( sprintf( 'Directory "%s" was not created', $twig_cache ) );
121
+ }
122
  }
123
 
124
  if ( file_exists( $twig_cache ) && is_writeable( $twig_cache ) ) {
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitd6f6eb3c90d5744ae2d5c0cdc41e518b::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit731afdac8f66c798f6a845c925808a4f::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd6f6eb3c90d5744ae2d5c0cdc41e518b
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitd6f6eb3c90d5744ae2d5c0cdc41e518b
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitd6f6eb3c90d5744ae2d5c0cdc41e518b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitd6f6eb3c90d5744ae2d5c0cdc41e518b', '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\ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitd6f6eb3c90d5744ae2d5c0cdc41e518b
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequired6f6eb3c90d5744ae2d5c0cdc41e518b($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequired6f6eb3c90d5744ae2d5c0cdc41e518b($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 ComposerAutoloaderInit731afdac8f66c798f6a845c925808a4f
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit731afdac8f66c798f6a845c925808a4f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit731afdac8f66c798f6a845c925808a4f', '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\ComposerStaticInit731afdac8f66c798f6a845c925808a4f::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\ComposerStaticInit731afdac8f66c798f6a845c925808a4f::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire731afdac8f66c798f6a845c925808a4f($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire731afdac8f66c798f6a845c925808a4f($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 ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b
8
  {
9
  public static $files = array (
10
  '8ec4222c68e580a23520eef4abe4380f' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
@@ -52,9 +52,9 @@ class ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b
52
  public static function getInitializer(ClassLoader $loader)
53
  {
54
  return \Closure::bind(function () use ($loader) {
55
- $loader->prefixLengthsPsr4 = ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b::$prefixLengthsPsr4;
56
- $loader->prefixDirsPsr4 = ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b::$prefixDirsPsr4;
57
- $loader->prefixesPsr0 = ComposerStaticInitd6f6eb3c90d5744ae2d5c0cdc41e518b::$prefixesPsr0;
58
 
59
  }, null, ClassLoader::class);
60
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit731afdac8f66c798f6a845c925808a4f
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 = ComposerStaticInit731afdac8f66c798f6a845c925808a4f::$prefixLengthsPsr4;
56
+ $loader->prefixDirsPsr4 = ComposerStaticInit731afdac8f66c798f6a845c925808a4f::$prefixDirsPsr4;
57
+ $loader->prefixesPsr0 = ComposerStaticInit731afdac8f66c798f6a845c925808a4f::$prefixesPsr0;
58
 
59
  }, null, ClassLoader::class);
60
  }