WordPress Page Builder – Beaver Builder - Version 2.1.1.3

Version Description

Download this release

Release Info

Developer pross
Plugin Icon 128x128 WordPress Page Builder – Beaver Builder
Version 2.1.1.3
Comparing to
See all releases

Code changes from version 2.1.1.2 to 2.1.1.3

changelog.txt CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  <h4>2.1.1.2 - 05/07/2018</h4>
2
  <p><strong>Enhancements</strong></p>
3
  <ul>
@@ -217,7 +226,6 @@
217
  <li>Fixed links not being clickable in modules that use bxslider with Firefox 59.</li>
218
  <li>Fixed incorrect links in Social Buttons Module when added in Themer.</li>
219
  <li>Added <code>$id</code> and <code>$type</code> to <code>fl_builder_render_module_css_settings</code> filter variables.</li>
220
- >>>>>>> master
221
  </ul>
222
 
223
  <h4>2.0.6.2 - 03/13/2018</h4>
@@ -376,7 +384,7 @@
376
  <li>Fixed bug with layout settings getting encoded when the modsec fix is enabled.</li>
377
  <li>Fixed Posts module - Columns layout broken when using load more pagination.</li>
378
  <li>Fixed Subscribe Module - Issues when same forms loaded on a page.</li>
379
- <li>Fixed issue with <code><textarea></code> HTML being stripped when settings are saved.</li>
380
  <li>Fixed issue with column widths on mobile when reverse stacking is enabled.</li>
381
  <li>Fixed issue when pasting color into a colorpicker field.</li>
382
  <li>Fixed a conflict with Fancybox3.</li>
1
+ <h4>2.1.1.3 - 05/10/2018</h4>
2
+ <p><strong>Hot Fix</strong></p>
3
+ <ul>
4
+ <li>Make sure Font Awesome 5 icons are enqueued when builder is open.</li>
5
+ <li>Disable Hummingbird cache minification while editing.</li>
6
+ <li>Fix editing issues introduced in WP 4.9.6.</li>
7
+ <li>Fixed a PHP notice in Subscribe Module.</li>
8
+ </ul>
9
+
10
  <h4>2.1.1.2 - 05/07/2018</h4>
11
  <p><strong>Enhancements</strong></p>
12
  <ul>
226
  <li>Fixed links not being clickable in modules that use bxslider with Firefox 59.</li>
227
  <li>Fixed incorrect links in Social Buttons Module when added in Themer.</li>
228
  <li>Added <code>$id</code> and <code>$type</code> to <code>fl_builder_render_module_css_settings</code> filter variables.</li>
 
229
  </ul>
230
 
231
  <h4>2.0.6.2 - 03/13/2018</h4>
384
  <li>Fixed bug with layout settings getting encoded when the modsec fix is enabled.</li>
385
  <li>Fixed Posts module - Columns layout broken when using load more pagination.</li>
386
  <li>Fixed Subscribe Module - Issues when same forms loaded on a page.</li>
387
+ <li>Fixed issue with <code>textarea</code> HTML being stripped when settings are saved.</li>
388
  <li>Fixed issue with column widths on mobile when reverse stacking is enabled.</li>
389
  <li>Fixed issue when pasting color into a colorpicker field.</li>
390
  <li>Fixed a conflict with Fancybox3.</li>
classes/class-fl-builder-loader.php CHANGED
@@ -46,7 +46,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
46
  * @return void
47
  */
48
  static private function define_constants() {
49
- define( 'FL_BUILDER_VERSION', '2.1.1.2' );
50
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
51
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
52
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
46
  * @return void
47
  */
48
  static private function define_constants() {
49
+ define( 'FL_BUILDER_VERSION', '2.1.1.3' );
50
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
51
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
52
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
classes/class-fl-builder.php CHANGED
@@ -643,10 +643,8 @@ final class FLBuilder {
643
  */
644
  if ( in_array( 'font-awesome', FLBuilderModel::get_enabled_icons() ) ) {
645
  wp_enqueue_style( 'font-awesome' );
646
- } else {
647
- wp_enqueue_style( 'font-awesome-5' );
648
  }
649
-
650
  wp_enqueue_style( 'foundation-icons' );
651
  wp_enqueue_style( 'jquery-nanoscroller', $css_url . 'jquery.nanoscroller.css', array(), $ver );
652
  wp_enqueue_style( 'jquery-autosuggest', $css_url . 'jquery.autoSuggest.min.css', array(), $ver );
643
  */
644
  if ( in_array( 'font-awesome', FLBuilderModel::get_enabled_icons() ) ) {
645
  wp_enqueue_style( 'font-awesome' );
 
 
646
  }
647
+ wp_enqueue_style( 'font-awesome-5' );
648
  wp_enqueue_style( 'foundation-icons' );
649
  wp_enqueue_style( 'jquery-nanoscroller', $css_url . 'jquery.nanoscroller.css', array(), $ver );
650
  wp_enqueue_style( 'jquery-autosuggest', $css_url . 'jquery.autoSuggest.min.css', array(), $ver );
fl-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Beaver Builder Plugin (Lite Version)
4
  * Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
5
  * Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
6
- * Version: 2.1.1.2
7
  * Author: The Beaver Builder Team
8
  * Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
9
  * Copyright: (c) 2014 Beaver Builder
3
  * Plugin Name: Beaver Builder Plugin (Lite Version)
4
  * Plugin URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-uri
5
  * Description: A drag and drop frontend WordPress page builder plugin that works with almost any theme!
6
+ * Version: 2.1.1.3
7
  * Author: The Beaver Builder Team
8
  * Author URI: https://www.wpbeaverbuilder.com/?utm_medium=bb&utm_source=plugins-admin-page&utm_campaign=plugins-admin-author
9
  * Copyright: (c) 2014 Beaver Builder
includes/compatibility.php CHANGED
@@ -432,3 +432,14 @@ function fl_builder_fa_fix() {
432
  }
433
  }
434
  add_action( 'wp_enqueue_scripts', 'fl_builder_fa_fix', 11 );
 
 
 
 
 
 
 
 
 
 
 
432
  }
433
  }
434
  add_action( 'wp_enqueue_scripts', 'fl_builder_fa_fix', 11 );
435
+
436
+ /**
437
+ * Turn off Hummingbird minification
438
+ * @since 2.1
439
+ */
440
+ add_action( 'template_redirect', 'fl_fix_hummingbird' );
441
+ function fl_fix_hummingbird() {
442
+ if ( FLBuilderModel::is_builder_active() ) {
443
+ add_filter( 'wp_hummingbird_is_active_module_minify', '__return_false', 500 );
444
+ }
445
+ }
includes/ui-field-photo.php CHANGED
@@ -6,12 +6,21 @@ if ( FLBuilderSettingsConfig.attachments[ data.value ] ) {
6
  photo = FLBuilderSettingsConfig.attachments[ data.value ];
7
  photo.isAttachment = true;
8
  } else if ( ! _.isEmpty( data.value ) ) {
9
- photo = {
10
- id: data.value,
11
- url: data.settings[ data.name + '_src' ],
12
- filename: data.settings[ data.name + '_src' ].split( '/' ).pop(),
13
- isAttachment: false
14
- };
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
  var className = data.field.className ? ' ' + data.field.className : '';
6
  photo = FLBuilderSettingsConfig.attachments[ data.value ];
7
  photo.isAttachment = true;
8
  } else if ( ! _.isEmpty( data.value ) ) {
9
+ if ( data.settings[ data.name + '_src' ] ) {
10
+ photo = {
11
+ id: data.value,
12
+ url: data.settings[ data.name + '_src' ],
13
+ filename: data.settings[ data.name + '_src' ].split( '/' ).pop(),
14
+ isAttachment: false
15
+ };
16
+ } else {
17
+ photo = {
18
+ id: 0,
19
+ url: data.value,
20
+ filename: data.value.split( '/' ).pop(),
21
+ isAttachment: false
22
+ };
23
+ }
24
  }
25
 
26
  var className = data.field.className ? ' ' + data.field.className : '';
includes/updater-config.php CHANGED
@@ -3,7 +3,7 @@
3
  if ( class_exists( 'FLUpdater' ) ) {
4
  FLUpdater::add_product(array(
5
  'name' => 'Beaver Builder Plugin (Lite Version)',
6
- 'version' => '2.1.1.2',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
3
  if ( class_exists( 'FLUpdater' ) ) {
4
  FLUpdater::add_product(array(
5
  'name' => 'Beaver Builder Plugin (Lite Version)',
6
+ 'version' => '2.1.1.3',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
includes/vendor/mailchimp/mailchimp.php CHANGED
@@ -541,9 +541,12 @@ class MailChimp
541
  'FNAME' => ! empty( $data[ 'FNAME' ] ) ? $data[ 'FNAME' ] : '',
542
  'LNAME' => ! empty( $data[ 'LNAME' ] ) ? $data[ 'LNAME' ] : ''
543
  ),
544
- 'interests' => (object) $data[ 'groups' ]
545
  );
546
 
 
 
 
 
547
  $email_hash = $this->subscriberHash( $data[ 'email' ] );
548
  $results = $this->put( 'lists/' . $list_id . '/members/' . $email_hash, $args );
549
 
541
  'FNAME' => ! empty( $data[ 'FNAME' ] ) ? $data[ 'FNAME' ] : '',
542
  'LNAME' => ! empty( $data[ 'LNAME' ] ) ? $data[ 'LNAME' ] : ''
543
  ),
 
544
  );
545
 
546
+ if ( isset( $data[ 'groups' ] ) ) {
547
+ $args[ 'interests' ] = (object) $data[ 'groups' ];
548
+ }
549
+
550
  $email_hash = $this->subscriberHash( $data[ 'email' ] );
551
  $results = $this->put( 'lists/' . $list_id . '/members/' . $email_hash, $args );
552