Brizy – Page Builder - Version 1.0.126

Version Description

  • 2020-06-03 =
  • Fix: Security fixes
Download this release

Release Info

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

Code changes from version 1.0.125 to 1.0.126

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.3.2<br>
5
  Requires PHP: 5.6<br>
6
- Stable tag: 1.0.125<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.125 - 2020-06-02 ###
122
  * Fix: Security fixes
123
 
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.3.2<br>
5
  Requires PHP: 5.6<br>
6
+ Stable tag: 1.0.126<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.126 - 2020-06-03 ###
122
+ * Fix: Security fixes
123
+
124
  ### 1.0.125 - 2020-06-02 ###
125
  * Fix: Security fixes
126
 
admin/blocks/main.php CHANGED
@@ -29,7 +29,11 @@ class Brizy_Admin_Blocks_Main {
29
  * BrizyPro_Admin_Popups constructor.
30
  */
31
  public function __construct() {
32
- add_action( 'wp_loaded', array( $this, 'initializeActions' ) );
 
 
 
 
33
  add_filter( 'brizy_global_data', array( $this, 'populateGlobalData' ) );
34
  }
35
 
@@ -127,7 +131,7 @@ class Brizy_Admin_Blocks_Main {
127
  'labels' => $labels,
128
  'public' => false,
129
  'has_archive' => false,
130
- 'description' => __bt( 'brizy', 'Brizy' ) . ' ' .__( 'global block.' ),
131
  'publicly_queryable' => false,
132
  'show_ui' => false,
133
  'show_in_menu' => false,
29
  * BrizyPro_Admin_Popups constructor.
30
  */
31
  public function __construct() {
32
+
33
+ if ( Brizy_Editor::is_user_allowed() ) {
34
+ add_action( 'wp_loaded', array( $this, 'initializeActions' ) );
35
+ }
36
+
37
  add_filter( 'brizy_global_data', array( $this, 'populateGlobalData' ) );
38
  }
39
 
131
  'labels' => $labels,
132
  'public' => false,
133
  'has_archive' => false,
134
+ 'description' => __bt( 'brizy', 'Brizy' ) . ' ' . __( 'global block.' ),
135
  'publicly_queryable' => false,
136
  'show_ui' => false,
137
  'show_in_menu' => false,
admin/fonts/main.php CHANGED
@@ -29,12 +29,15 @@ class Brizy_Admin_Fonts_Main {
29
  * BrizyPro_Admin_Popups constructor.
30
  */
31
  public function __construct() {
32
- add_action( 'wp_loaded', array( $this, 'initializeActions' ) );
33
- add_filter( 'upload_mimes', array( $this, 'addFontTypes' ) );
34
- add_filter( 'wp_check_filetype_and_ext', array( $this, 'wp_check_filetype_and_ext' ), 10, 4 );
35
 
36
  $urlBuilder = new Brizy_Editor_UrlBuilder();
37
  $handler = new Brizy_Admin_Fonts_Handler( $urlBuilder, null );
 
 
 
 
 
 
38
  }
39
 
40
  public function initializeActions() {
29
  * BrizyPro_Admin_Popups constructor.
30
  */
31
  public function __construct() {
 
 
 
32
 
33
  $urlBuilder = new Brizy_Editor_UrlBuilder();
34
  $handler = new Brizy_Admin_Fonts_Handler( $urlBuilder, null );
35
+
36
+ if ( Brizy_Editor::is_user_allowed() ) {
37
+ add_action( 'wp_loaded', array( $this, 'initializeActions' ) );
38
+ add_filter( 'upload_mimes', array( $this, 'addFontTypes' ) );
39
+ add_filter( 'wp_check_filetype_and_ext', array( $this, 'wp_check_filetype_and_ext' ), 10, 4 );
40
+ }
41
  }
42
 
43
  public function initializeActions() {
admin/form-entries.php CHANGED
@@ -27,17 +27,19 @@ class Brizy_Admin_FormEntries {
27
  */
28
  public function __construct() {
29
 
30
- add_action( 'admin_menu', array( $this, 'addSubmenuPage' ), 11 );
31
- //add_action( 'admin_init', array( $this, 'handleEnableButton' ) );
32
- //add_action( 'admin_footer', array( $this, 'addOnOffOption' ) );
33
- add_action( 'admin_footer', array( $this, 'customStylesForList' ) );
34
-
35
- add_filter( 'post_row_actions', array( $this, 'filterRowActions' ), 10, 2 );
36
- add_filter( 'manage_' . self::CP_FORM_ENTRY . '_posts_columns', array( $this, 'replaceTitleColumn' ) );
37
- add_action( 'manage_' . self::CP_FORM_ENTRY . '_posts_custom_column', array(
38
- $this,
39
- 'manageCustomColumns'
40
- ), 10, 2 );
 
 
41
 
42
  $this->enableLog = get_option( self::OPTION_SUBMIT_LOG, true );
43
 
@@ -188,16 +190,15 @@ class Brizy_Admin_FormEntries {
188
 
189
  $title = '';
190
 
191
- foreach ( $fields as $i=>$field ) {
192
  if ( strtolower( $field->type ) == 'email' ) {
193
  $title = $field->value;
194
  }
195
 
196
- if($field->name=='g-recaptcha-response')
197
- {
198
- unset($fields[$i]);
199
- $fields = array_values($fields);
200
- }
201
  }
202
 
203
  $params = array(
27
  */
28
  public function __construct() {
29
 
30
+ if ( is_admin() && Brizy_Editor::is_administrator() ) {
31
+ add_action( 'admin_menu', array( $this, 'addSubmenuPage' ), 11 );
32
+ //add_action( 'admin_init', array( $this, 'handleEnableButton' ) );
33
+ //add_action( 'admin_footer', array( $this, 'addOnOffOption' ) );
34
+ add_action( 'admin_footer', array( $this, 'customStylesForList' ) );
35
+
36
+ add_filter( 'post_row_actions', array( $this, 'filterRowActions' ), 10, 2 );
37
+ add_filter( 'manage_' . self::CP_FORM_ENTRY . '_posts_columns', array( $this, 'replaceTitleColumn' ) );
38
+ add_action( 'manage_' . self::CP_FORM_ENTRY . '_posts_custom_column', array(
39
+ $this,
40
+ 'manageCustomColumns'
41
+ ), 10, 2 );
42
+ }
43
 
44
  $this->enableLog = get_option( self::OPTION_SUBMIT_LOG, true );
45
 
190
 
191
  $title = '';
192
 
193
+ foreach ( $fields as $i => $field ) {
194
  if ( strtolower( $field->type ) == 'email' ) {
195
  $title = $field->value;
196
  }
197
 
198
+ if ( $field->name == 'g-recaptcha-response' ) {
199
+ unset( $fields[ $i ] );
200
+ $fields = array_values( $fields );
201
+ }
 
202
  }
203
 
204
  $params = array(
admin/popups/main.php CHANGED
@@ -48,7 +48,6 @@ class Brizy_Admin_Popups_Main {
48
 
49
  static public function registerCustomPosts() {
50
 
51
-
52
  $labels = array(
53
  'name' => _x( 'Popups', 'post type general name' ),
54
  'singular_name' => _x( 'Popup', 'post type singular name' ),
48
 
49
  static public function registerCustomPosts() {
50
 
 
51
  $labels = array(
52
  'name' => _x( 'Popups', 'post type general name' ),
53
  'singular_name' => _x( 'Popup', 'post type singular name' ),
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.125
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.125' );
23
  define( 'BRIZY_EDITOR_VERSION', '144-wp' );
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.126
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.126' );
23
  define( 'BRIZY_EDITOR_VERSION', '144-wp' );
24
  define( 'BRIZY_FILE', __FILE__ );
25
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
editor.php CHANGED
@@ -72,13 +72,14 @@ class Brizy_Editor {
72
 
73
  public function wordpressInit() {
74
 
75
- if ( Brizy_Editor::is_user_allowed() ) {
76
- Brizy_Admin_FormEntries::_init();
77
- Brizy_Admin_Templates::_init();
78
- Brizy_Admin_Blocks_Main::_init();
79
- Brizy_Admin_Fonts_Main::_init();
80
- Brizy_Admin_Svg_Main::_init();
81
- Brizy_Admin_Popups_Main::_init();
 
82
  Brizy_Admin_OptimizeImages::_init();
83
  }
84
 
@@ -366,7 +367,7 @@ class Brizy_Editor {
366
  return false;
367
  }
368
 
369
- return is_admin() || is_super_admin();
370
  }
371
 
372
  public static function is_subscriber() {
72
 
73
  public function wordpressInit() {
74
 
75
+ Brizy_Admin_Templates::_init();
76
+ Brizy_Admin_Popups_Main::_init();
77
+ Brizy_Admin_FormEntries::_init();
78
+ Brizy_Admin_Fonts_Main::_init();
79
+ Brizy_Admin_Blocks_Main::_init();
80
+
81
+ if ( Brizy_Editor::is_user_allowed() ) {
82
+ Brizy_Admin_Svg_Main::_init();
83
  Brizy_Admin_OptimizeImages::_init();
84
  }
85
 
367
  return false;
368
  }
369
 
370
+ return is_super_admin();
371
  }
372
 
373
  public static function is_subscriber() {
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.3.2
6
  Requires PHP: 5.6
7
- Stable tag: 1.0.125
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.125 - 2020-06-02 =
143
  * Fix: Security fixes
144
 
4
  Requires at least: 4.5
5
  Tested up to: 5.3.2
6
  Requires PHP: 5.6
7
+ Stable tag: 1.0.126
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.126 - 2020-06-03 =
143
+ * Fix: Security fixes
144
+
145
  = 1.0.125 - 2020-06-02 =
146
  * Fix: Security fixes
147
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit6637bb7bbbbf79fe7da63d28600f205f::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit1e150dcfd7301c6a3632e47b855128f5::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit6637bb7bbbbf79fe7da63d28600f205f
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit6637bb7bbbbf79fe7da63d28600f205f
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit6637bb7bbbbf79fe7da63d28600f205f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit6637bb7bbbbf79fe7da63d28600f205f', '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\ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit6637bb7bbbbf79fe7da63d28600f205f
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire6637bb7bbbbf79fe7da63d28600f205f($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire6637bb7bbbbf79fe7da63d28600f205f($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 ComposerAutoloaderInit1e150dcfd7301c6a3632e47b855128f5
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit1e150dcfd7301c6a3632e47b855128f5', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit1e150dcfd7301c6a3632e47b855128f5', '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\ComposerStaticInit1e150dcfd7301c6a3632e47b855128f5::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\ComposerStaticInit1e150dcfd7301c6a3632e47b855128f5::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire1e150dcfd7301c6a3632e47b855128f5($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire1e150dcfd7301c6a3632e47b855128f5($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 ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f
8
  {
9
  public static $files = array (
10
  '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@@ -74,9 +74,9 @@ class ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f
74
  public static function getInitializer(ClassLoader $loader)
75
  {
76
  return \Closure::bind(function () use ($loader) {
77
- $loader->prefixLengthsPsr4 = ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f::$prefixLengthsPsr4;
78
- $loader->prefixDirsPsr4 = ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f::$prefixDirsPsr4;
79
- $loader->prefixesPsr0 = ComposerStaticInit6637bb7bbbbf79fe7da63d28600f205f::$prefixesPsr0;
80
 
81
  }, null, ClassLoader::class);
82
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit1e150dcfd7301c6a3632e47b855128f5
8
  {
9
  public static $files = array (
10
  '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
74
  public static function getInitializer(ClassLoader $loader)
75
  {
76
  return \Closure::bind(function () use ($loader) {
77
+ $loader->prefixLengthsPsr4 = ComposerStaticInit1e150dcfd7301c6a3632e47b855128f5::$prefixLengthsPsr4;
78
+ $loader->prefixDirsPsr4 = ComposerStaticInit1e150dcfd7301c6a3632e47b855128f5::$prefixDirsPsr4;
79
+ $loader->prefixesPsr0 = ComposerStaticInit1e150dcfd7301c6a3632e47b855128f5::$prefixesPsr0;
80
 
81
  }, null, ClassLoader::class);
82
  }