Brizy – Page Builder - Version 1.0.59

Version Description

  • 2019-01-29 =
  • Fixed: Wordpress integration for forms
Download this release

Release Info

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

Code changes from version 1.0.58 to 1.0.59

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 4.9<br>
5
  Requires PHP: 5.4<br>
6
- Stable tag: 1.0.58<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -96,6 +96,9 @@ A good bug report includes full details to easily understand the issue you are h
96
 
97
  ## Changelog
98
 
 
 
 
99
  ### 1.0.58 - 2019-01-29 ###
100
  * Fixed: Unable to add background images
101
  * Fixed: Migration instance class check
3
  Requires at least: 4.5<br>
4
  Tested up to: 4.9<br>
5
  Requires PHP: 5.4<br>
6
+ Stable tag: 1.0.59<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
96
 
97
  ## Changelog
98
 
99
+ ### 1.0.59 - 2019-01-29 ###
100
+ * Fixed: Wordpress integration for forms
101
+
102
  ### 1.0.58 - 2019-01-29 ###
103
  * Fixed: Unable to add background images
104
  * Fixed: Migration instance class check
admin/migrations.php CHANGED
@@ -135,7 +135,7 @@ class Brizy_Admin_Migrations {
135
 
136
  $latest = $this->globalStorage->latestMigration();
137
 
138
- if ( ! $latest ) {
139
  $latest = new Brizy_Admin_Migrations_NullMigration();
140
  }
141
 
135
 
136
  $latest = $this->globalStorage->latestMigration();
137
 
138
+ if ( ! $latest instanceof Brizy_Admin_Migrations_MigrationInterface ) {
139
  $latest = new Brizy_Admin_Migrations_NullMigration();
140
  }
141
 
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.58
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
@@ -20,7 +20,7 @@ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && stripos( $_SERVER['HTTP_X_FO
20
 
21
  define( 'BRIZY_DEVELOPMENT', false );
22
  define( 'BRIZY_LOG', false );
23
- define( 'BRIZY_VERSION', '1.0.58' );
24
  define( 'BRIZY_EDITOR_VERSION', '1.0.84' );
25
  define( 'BRIZY_FILE', __FILE__ );
26
  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.59
9
  * Text Domain: brizy
10
  * License: GPLv3
11
  * Domain Path: /languages
20
 
21
  define( 'BRIZY_DEVELOPMENT', false );
22
  define( 'BRIZY_LOG', false );
23
+ define( 'BRIZY_VERSION', '1.0.59' );
24
  define( 'BRIZY_EDITOR_VERSION', '1.0.84' );
25
  define( 'BRIZY_FILE', __FILE__ );
26
  define( 'BRIZY_PLUGIN_BASE', plugin_basename( BRIZY_FILE ) );
editor/forms/api.php CHANGED
@@ -170,19 +170,11 @@ class Brizy_Editor_Forms_Api {
170
 
171
 
172
  foreach ( $form->getIntegrations() as $integration ) {
173
- if ( ! $integration->isCompleted() || $integration->getId() == 'wordpress' ) {
174
  continue;
175
  }
176
 
177
  try {
178
- /**
179
- * @var \BrizyForms\Service\Service $service ;
180
- */
181
- $service = \BrizyForms\ServiceFactory::getInstance( $integration->getId() );
182
-
183
- if ( ! ( $service instanceof \BrizyForms\Service\Service ) ) {
184
- $this->error( 400, "Invalid integration service" );
185
- }
186
 
187
  if ( $integration instanceof Brizy_Editor_Forms_WordpressIntegration ) {
188
 
@@ -199,14 +191,28 @@ class Brizy_Editor_Forms_Api {
199
  $headers = apply_filters( 'brizy_form_email_headers', $headers, $form, $fields );
200
  $email_body = apply_filters( 'brizy_form_email_body', $email_body, $form, $fields );
201
 
 
 
 
 
202
  $result = wp_mail(
203
- $form->getEmailTo(),
204
- $form->getSubject(),
205
  $email_body,
206
  $headers
207
  );
208
 
209
  } else {
 
 
 
 
 
 
 
 
 
 
210
  do_action( 'brizy_submit_form', $service, $form, $fields, $integration );
211
  }
212
  } catch ( Exception $e ) {
170
 
171
 
172
  foreach ( $form->getIntegrations() as $integration ) {
173
+ if ( ! $integration->isCompleted() ) {
174
  continue;
175
  }
176
 
177
  try {
 
 
 
 
 
 
 
 
178
 
179
  if ( $integration instanceof Brizy_Editor_Forms_WordpressIntegration ) {
180
 
191
  $headers = apply_filters( 'brizy_form_email_headers', $headers, $form, $fields );
192
  $email_body = apply_filters( 'brizy_form_email_body', $email_body, $form, $fields );
193
 
194
+ if ( ! function_exists( 'wp_mail' ) ) {
195
+ throw new Exception( 'Please check your wordpress configuration.' );
196
+ }
197
+
198
  $result = wp_mail(
199
+ $integration->getEmailTo(),
200
+ $integration->getSubject(),
201
  $email_body,
202
  $headers
203
  );
204
 
205
  } else {
206
+
207
+ /**
208
+ * @var \BrizyForms\Service\Service $service ;
209
+ */
210
+ $service = \BrizyForms\ServiceFactory::getInstance( $integration->getId() );
211
+
212
+ if ( ! ( $service instanceof \BrizyForms\Service\Service ) ) {
213
+ $this->error( 400, "Invalid integration service" );
214
+ }
215
+
216
  do_action( 'brizy_submit_form', $service, $form, $fields, $integration );
217
  }
218
  } catch ( Exception $e ) {
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: 4.9
6
  Requires PHP: 5.4
7
- Stable tag: 1.0.58
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.58 - 2019-01-29 =
143
  * Fixed: Unable to add background images
144
  * Fixed: Migration instance class check
4
  Requires at least: 4.5
5
  Tested up to: 4.9
6
  Requires PHP: 5.4
7
+ Stable tag: 1.0.59
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.59 - 2019-01-29 =
143
+ * Fixed: Wordpress integration for forms
144
+
145
  = 1.0.58 - 2019-01-29 =
146
  * Fixed: Unable to add background images
147
  * Fixed: Migration instance class check
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit94c90c3735e4fcb0951717a35cb79dc6::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitbd75eec4607d3b80550859d3fd55c5f2::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit94c90c3735e4fcb0951717a35cb79dc6
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit94c90c3735e4fcb0951717a35cb79dc6
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit94c90c3735e4fcb0951717a35cb79dc6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit94c90c3735e4fcb0951717a35cb79dc6', '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\ComposerStaticInit94c90c3735e4fcb0951717a35cb79dc6::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitbd75eec4607d3b80550859d3fd55c5f2
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitbd75eec4607d3b80550859d3fd55c5f2', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitbd75eec4607d3b80550859d3fd55c5f2', '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\ComposerStaticInitbd75eec4607d3b80550859d3fd55c5f2::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit94c90c3735e4fcb0951717a35cb79dc6
8
  {
9
  public static $prefixesPsr0 = array (
10
  'T' =>
@@ -19,7 +19,7 @@ class ComposerStaticInit94c90c3735e4fcb0951717a35cb79dc6
19
  public static function getInitializer(ClassLoader $loader)
20
  {
21
  return \Closure::bind(function () use ($loader) {
22
- $loader->prefixesPsr0 = ComposerStaticInit94c90c3735e4fcb0951717a35cb79dc6::$prefixesPsr0;
23
 
24
  }, null, ClassLoader::class);
25
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitbd75eec4607d3b80550859d3fd55c5f2
8
  {
9
  public static $prefixesPsr0 = array (
10
  'T' =>
19
  public static function getInitializer(ClassLoader $loader)
20
  {
21
  return \Closure::bind(function () use ($loader) {
22
+ $loader->prefixesPsr0 = ComposerStaticInitbd75eec4607d3b80550859d3fd55c5f2::$prefixesPsr0;
23
 
24
  }, null, ClassLoader::class);
25
  }