Brizy – Page Builder - Version 1.0.114

Version Description

  • 2020-02-12 =
  • Fixed: Builder settings page access
Download this release

Release Info

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

Code changes from version 1.0.113 to 1.0.114

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.113<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.113 - 2020-01-30 ###
122
  * Fixed: Column settings with column draggable
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.114<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.114 - 2020-02-12 ###
122
+ * Fixed: Builder settings page access
123
+
124
  ### 1.0.113 - 2020-01-30 ###
125
  * Fixed: Column settings with column draggable
126
 
admin/site-settings.php CHANGED
@@ -5,6 +5,11 @@
5
  require_once( '../../../../wp-load.php' );
6
  require_once( ABSPATH . 'wp-admin/includes/file.php' );
7
 
 
 
 
 
 
8
  if ( class_exists( 'Brizy_Admin_SiteSettings_Main' ) ) {
9
  $settings = new Brizy_Admin_SiteSettings_Main( 'admin/site-settings.php' );
10
  $settings->run();
5
  require_once( '../../../../wp-load.php' );
6
  require_once( ABSPATH . 'wp-admin/includes/file.php' );
7
 
8
+ if(!is_user_logged_in() || !current_user_can('administrator') ) {
9
+ wp_redirect(admin_url());
10
+ exit;
11
+ }
12
+
13
  if ( class_exists( 'Brizy_Admin_SiteSettings_Main' ) ) {
14
  $settings = new Brizy_Admin_SiteSettings_Main( 'admin/site-settings.php' );
15
  $settings->run();
admin/site-settings/main.php CHANGED
@@ -72,10 +72,10 @@ class Brizy_Admin_SiteSettings_Main {
72
 
73
  private function handleSettingsTabSubmit() {
74
  if ( isset( $_POST['title'] ) ) {
75
- update_option( 'blogname', wp_unslash( $_POST['title'] ) );
76
  }
77
  if ( isset( $_POST['description'] ) ) {
78
- update_option( 'blogdescription', wp_unslash( $_POST['description'] ) );
79
  }
80
 
81
  if ( isset( $_FILES['favicon'] ) ) {
@@ -103,10 +103,10 @@ class Brizy_Admin_SiteSettings_Main {
103
 
104
  public function handleSocialSharingSubmit() {
105
  if ( isset( $_POST['title'] ) ) {
106
- update_option( 'brizy-social-title', wp_unslash( $_POST['title'] ) );
107
  }
108
  if ( isset( $_POST['description'] ) ) {
109
- update_option( 'brizy-social-description', wp_unslash( $_POST['description'] ) );
110
  }
111
 
112
  if ( isset( $_FILES['thumbnail'] ) ) {
72
 
73
  private function handleSettingsTabSubmit() {
74
  if ( isset( $_POST['title'] ) ) {
75
+ update_option( 'blogname', sanitize_text_field( $_POST['title'] ) );
76
  }
77
  if ( isset( $_POST['description'] ) ) {
78
+ update_option( 'blogdescription', sanitize_text_field( $_POST['description'] ) );
79
  }
80
 
81
  if ( isset( $_FILES['favicon'] ) ) {
103
 
104
  public function handleSocialSharingSubmit() {
105
  if ( isset( $_POST['title'] ) ) {
106
+ update_option( 'brizy-social-title', sanitize_text_field( $_POST['title'] ) );
107
  }
108
  if ( isset( $_POST['description'] ) ) {
109
+ update_option( 'brizy-social-description', sanitize_text_field( $_POST['description'] ) );
110
  }
111
 
112
  if ( isset( $_FILES['thumbnail'] ) ) {
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.113
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.113' );
23
  define( 'BRIZY_EDITOR_VERSION', '129-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.114
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.114' );
23
  define( 'BRIZY_EDITOR_VERSION', '129-wp' );
24
  define( 'BRIZY_FILE', __FILE__ );
25
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
editor.php CHANGED
@@ -53,7 +53,7 @@ class Brizy_Editor {
53
 
54
  add_filter( "wp_revisions_to_keep", array( $this, 'revisionsToKeep' ), 10, 2 );
55
  //add_action( 'wp_head', array( $this, 'brizy_settings_header' ) );
56
- add_action( 'wp_footer', array( $this, 'brizy_settings_footer' ) );
57
 
58
  }
59
 
@@ -496,4 +496,4 @@ class Brizy_Editor {
496
  new Brizy_Admin_Feedback();
497
  }
498
  }
499
- }
53
 
54
  add_filter( "wp_revisions_to_keep", array( $this, 'revisionsToKeep' ), 10, 2 );
55
  //add_action( 'wp_head', array( $this, 'brizy_settings_header' ) );
56
+ //add_action( 'wp_footer', array( $this, 'brizy_settings_footer' ) );
57
 
58
  }
59
 
496
  new Brizy_Admin_Feedback();
497
  }
498
  }
499
+ }
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.113
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.113 - 2020-01-30 =
143
  * Fixed: Column settings with column draggable
144
 
4
  Requires at least: 4.5
5
  Tested up to: 5.3.2
6
  Requires PHP: 5.6
7
+ Stable tag: 1.0.114
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.114 - 2020-02-12 =
143
+ * Fixed: Builder settings page access
144
+
145
  = 1.0.113 - 2020-01-30 =
146
  * Fixed: Column settings with column draggable
147
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit0587cf6be5c0227c649619ec65896cf4::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit3d59c3ef977aebdaa70f8025df798695::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit0587cf6be5c0227c649619ec65896cf4
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit0587cf6be5c0227c649619ec65896cf4
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit0587cf6be5c0227c649619ec65896cf4', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit0587cf6be5c0227c649619ec65896cf4', '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\ComposerStaticInit0587cf6be5c0227c649619ec65896cf4::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit0587cf6be5c0227c649619ec65896cf4
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit0587cf6be5c0227c649619ec65896cf4::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire0587cf6be5c0227c649619ec65896cf4($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire0587cf6be5c0227c649619ec65896cf4($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 ComposerAutoloaderInit3d59c3ef977aebdaa70f8025df798695
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit3d59c3ef977aebdaa70f8025df798695', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit3d59c3ef977aebdaa70f8025df798695', '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\ComposerStaticInit3d59c3ef977aebdaa70f8025df798695::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\ComposerStaticInit3d59c3ef977aebdaa70f8025df798695::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire3d59c3ef977aebdaa70f8025df798695($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire3d59c3ef977aebdaa70f8025df798695($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 ComposerStaticInit0587cf6be5c0227c649619ec65896cf4
8
  {
9
  public static $files = array (
10
  '8ec4222c68e580a23520eef4abe4380f' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
@@ -60,9 +60,9 @@ class ComposerStaticInit0587cf6be5c0227c649619ec65896cf4
60
  public static function getInitializer(ClassLoader $loader)
61
  {
62
  return \Closure::bind(function () use ($loader) {
63
- $loader->prefixLengthsPsr4 = ComposerStaticInit0587cf6be5c0227c649619ec65896cf4::$prefixLengthsPsr4;
64
- $loader->prefixDirsPsr4 = ComposerStaticInit0587cf6be5c0227c649619ec65896cf4::$prefixDirsPsr4;
65
- $loader->prefixesPsr0 = ComposerStaticInit0587cf6be5c0227c649619ec65896cf4::$prefixesPsr0;
66
 
67
  }, null, ClassLoader::class);
68
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3d59c3ef977aebdaa70f8025df798695
8
  {
9
  public static $files = array (
10
  '8ec4222c68e580a23520eef4abe4380f' => __DIR__ . '/..' . '/shortpixel/shortpixel-php/lib/ShortPixel.php',
60
  public static function getInitializer(ClassLoader $loader)
61
  {
62
  return \Closure::bind(function () use ($loader) {
63
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3d59c3ef977aebdaa70f8025df798695::$prefixLengthsPsr4;
64
+ $loader->prefixDirsPsr4 = ComposerStaticInit3d59c3ef977aebdaa70f8025df798695::$prefixDirsPsr4;
65
+ $loader->prefixesPsr0 = ComposerStaticInit3d59c3ef977aebdaa70f8025df798695::$prefixesPsr0;
66
 
67
  }, null, ClassLoader::class);
68
  }