WordPress Page Builder – Beaver Builder - Version 2.4.2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.4.2 to 2.4.2.1

changelog.txt CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  <h4>2.4.2 - 01/28/2021</h4>
2
  <strong>Enhancements</strong>
3
  <ul>
1
+ <h4>2.4.2.1 - 02/11/2021</h4>
2
+ <strong>Hot Fix</strong>
3
+ <ul>
4
+ <li>Contact Form Module: Escape characters in fields</li>
5
+ <li>Post Module: Fix missing images in Safari 13 and below when using Load More or Scroll for pagination</li>
6
+ <li>Post Module: Fix blurry images in Safari when using scroll for pagination and when using some CDNs for images</li>
7
+ <li>When using the <code>fl_enable_shortcode_css_js</code> filter, make sure those shortcodes render in the UI/Edit Mode</li>
8
+ <li>Revert fix for button styling applying to inputs in the Subscribe Module</li>
9
+ <li>Fixed compatibility with ClassicPress</li>
10
+ </ul>
11
+
12
  <h4>2.4.2 - 01/28/2021</h4>
13
  <strong>Enhancements</strong>
14
  <ul>
classes/class-fl-builder-loader.php CHANGED
@@ -48,7 +48,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
48
  * @return void
49
  */
50
  static private function define_constants() {
51
- define( 'FL_BUILDER_VERSION', '2.4.2' );
52
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
53
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
54
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
48
  * @return void
49
  */
50
  static private function define_constants() {
51
+ define( 'FL_BUILDER_VERSION', '2.4.2.1' );
52
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
53
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
54
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
classes/class-fl-builder.php CHANGED
@@ -786,6 +786,19 @@ final class FLBuilder {
786
  $js_build = plugins_url( '/js/build/', FL_BUILDER_FILE );
787
  $tag = '.bundle.min';
788
  $vendor_tag = '.min';
 
 
 
 
 
 
 
 
 
 
 
 
 
789
 
790
  if ( self::is_debug() ) {
791
  $tag = '.bundle';
@@ -802,6 +815,22 @@ final class FLBuilder {
802
  // React-DOM
803
  wp_deregister_script( 'react-dom' );
804
  wp_enqueue_script( 'react-dom', "{$js_vendors}react-dom{$vendor_tag}.js", array(), $ver, true );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
805
  }
806
 
807
  /**
@@ -821,24 +850,11 @@ final class FLBuilder {
821
  // react-laag
822
  wp_register_script( 'react-laag', "{$js_build}vendor-react-laag{$tag}.js", array( 'react' ), $ver, false );
823
 
824
- // @beaverbuilder/app-core
825
- $app_core_deps = array( 'react', 'redux', 'react-router-dom', 'wp-i18n' );
826
  wp_register_script( 'bb-app-core', "{$js_build}vendor-bb-app-core{$tag}.js", $app_core_deps, $ver, false );
827
 
828
  // @beaverbuilder/icons
829
  wp_register_script( 'bb-icons', "{$js_build}vendor-bb-icons{$tag}.js", array( 'react' ), $ver, false );
830
 
831
- // @beaverbuilder/fluid
832
- $fluid_deps = array(
833
- 'react',
834
- 'react-dom',
835
- 'redux',
836
- 'react-router-dom',
837
- 'framer-motion',
838
- 'react-laag',
839
- 'wp-i18n',
840
- 'bb-icons',
841
- );
842
  wp_register_script( 'bb-fluid', "{$js_build}vendor-bb-fluid{$tag}.js", $fluid_deps, $ver, false );
843
  wp_register_style( 'bb-fluid', "{$css_build}vendor-bb-fluid{$tag}.css", array(), $ver, null );
844
  }
@@ -2817,8 +2833,8 @@ final class FLBuilder {
2817
  $global_settings = FLBuilderModel::get_global_settings();
2818
  $layout_settings = FLBuilderModel::get_layout_settings();
2819
 
2820
- echo '<style id="fl-builder-global-css">' . $global_settings->css . '</style>';
2821
- echo '<style id="fl-builder-layout-css">' . $layout_settings->css . '</style>';
2822
  }
2823
 
2824
  /**
786
  $js_build = plugins_url( '/js/build/', FL_BUILDER_FILE );
787
  $tag = '.bundle.min';
788
  $vendor_tag = '.min';
789
+ // @beaverbuilder/app-core
790
+ $app_core_deps = array( 'react', 'redux', 'react-router-dom', 'wp-i18n' );
791
+ // @beaverbuilder/fluid
792
+ $fluid_deps = array(
793
+ 'react',
794
+ 'react-dom',
795
+ 'redux',
796
+ 'react-router-dom',
797
+ 'framer-motion',
798
+ 'react-laag',
799
+ 'wp-i18n',
800
+ 'bb-icons',
801
+ );
802
 
803
  if ( self::is_debug() ) {
804
  $tag = '.bundle';
815
  // React-DOM
816
  wp_deregister_script( 'react-dom' );
817
  wp_enqueue_script( 'react-dom', "{$js_vendors}react-dom{$vendor_tag}.js", array(), $ver, true );
818
+
819
+ // @beaverbuilder/app-core
820
+ $app_core_deps = array( 'react', 'redux', 'react-router-dom' );
821
+ // @beaverbuilder/fluid
822
+ $fluid_deps = array(
823
+ 'react',
824
+ 'react-dom',
825
+ 'redux',
826
+ 'react-router-dom',
827
+ 'framer-motion',
828
+ 'react-laag',
829
+ 'bb-icons',
830
+ );
831
+ if ( ! wp_script_is( 'wp-i18n', 'registered' ) ) {
832
+ wp_enqueue_script( 'fl-wp-i18n', "{$js_vendors}i18n-polyfill.js" );
833
+ }
834
  }
835
 
836
  /**
850
  // react-laag
851
  wp_register_script( 'react-laag', "{$js_build}vendor-react-laag{$tag}.js", array( 'react' ), $ver, false );
852
 
 
 
853
  wp_register_script( 'bb-app-core', "{$js_build}vendor-bb-app-core{$tag}.js", $app_core_deps, $ver, false );
854
 
855
  // @beaverbuilder/icons
856
  wp_register_script( 'bb-icons', "{$js_build}vendor-bb-icons{$tag}.js", array( 'react' ), $ver, false );
857
 
 
 
 
 
 
 
 
 
 
 
 
858
  wp_register_script( 'bb-fluid', "{$js_build}vendor-bb-fluid{$tag}.js", $fluid_deps, $ver, false );
859
  wp_register_style( 'bb-fluid', "{$css_build}vendor-bb-fluid{$tag}.css", array(), $ver, null );
860
  }
2833
  $global_settings = FLBuilderModel::get_global_settings();
2834
  $layout_settings = FLBuilderModel::get_layout_settings();
2835
 
2836
+ echo '<style id="fl-builder-global-css">' . self::maybe_do_shortcode( $global_settings->css ) . '</style>';
2837
+ echo '<style id="fl-builder-layout-css">' . self::maybe_do_shortcode( $layout_settings->css ) . '</style>';
2838
  }
2839
 
2840
  /**
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.4.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.4.2.1
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/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.4.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.4.2.1',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
includes/updater/classes/class-fl-updater.php CHANGED
@@ -477,12 +477,12 @@ final class FLUpdater {
477
 
478
  if ( isset( $subscription->error ) && '' !== $subscription->error ) {
479
  $support_url = FLBuilderModel::get_store_url( 'contact', array(
480
- 'topic' => 'General Inquiry',
481
- 'utm_medium' => 'bb-pro',
482
- 'utm_source' => 'plugin-updates',
483
  ) );
484
- $url = sprintf( '<a target="_blank" style="color: #fff; text-decoration: underline;" href="%s">%s</a>', $support_url, __( 'Contact Support for more information.', 'fl-builder' ) );
485
- $text .= sprintf( '<br />The following error was encountered: %s %s', $subscription->error, $url );
486
  }
487
 
488
  $message .= '<span style="display:block;padding:10px 20px;margin:10px 0; background: #d54e21; color: #fff;">';
477
 
478
  if ( isset( $subscription->error ) && '' !== $subscription->error ) {
479
  $support_url = FLBuilderModel::get_store_url( 'contact', array(
480
+ 'topic' => 'General Inquiry',
481
+ 'utm_medium' => 'bb-pro',
482
+ 'utm_source' => 'plugin-updates',
483
  ) );
484
+ $url = sprintf( '<a target="_blank" style="color: #fff; text-decoration: underline;" href="%s">%s</a>', $support_url, __( 'Contact Support for more information.', 'fl-builder' ) );
485
+ $text .= sprintf( '<br />The following error was encountered: %s %s', $subscription->error, $url );
486
  }
487
 
488
  $message .= '<span style="display:block;padding:10px 20px;margin:10px 0; background: #d54e21; color: #fff;">';
js/vendors/i18n-polyfill.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ window.wp = window.wp || {};
2
+ window.wp.i18n = {};
json/fonts.json CHANGED
@@ -613,6 +613,11 @@
613
  "variants": ["300", "regular", "700"],
614
  "fallback": "sans-serif"
615
  }
 
 
 
 
 
616
  }, {
617
  "Bentham": {
618
  "variants": ["regular"],
@@ -2561,7 +2566,7 @@
2561
  }, {
2562
  "Laila": {
2563
  "variants": ["300", "regular", "500", "600", "700"],
2564
- "fallback": "serif"
2565
  }
2566
  }, {
2567
  "Lakki Reddy": {
613
  "variants": ["300", "regular", "700"],
614
  "fallback": "sans-serif"
615
  }
616
+ }, {
617
+ "Benne": {
618
+ "variants": ["regular"],
619
+ "fallback": "serif"
620
+ }
621
  }, {
622
  "Bentham": {
623
  "variants": ["regular"],
2566
  }, {
2567
  "Laila": {
2568
  "variants": ["300", "regular", "500", "600", "700"],
2569
+ "fallback": "sans-serif"
2570
  }
2571
  }, {
2572
  "Lakki Reddy": {
languages/de_DE.mo CHANGED
Binary file
languages/fr_FR.mo CHANGED
Binary file
languages/nl_NL.mo CHANGED
Binary file
languages/sv_SE.mo CHANGED
Binary file
languages/uk.mo CHANGED
Binary file