WordPress Page Builder – Beaver Builder - Version 2.4.2.2

Version Description

Download this release

Release Info

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

Code changes from version 2.4.2.1 to 2.4.2.2

changelog.txt CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  <h4>2.4.2.1 - 02/11/2021</h4>
2
  <strong>Hot Fix</strong>
3
  <ul>
1
+ <h4>2.4.2.2 - 03/01/2021</h4>
2
+ <strong>Hot Fix</strong>
3
+ <ul>
4
+ <li>Fixed photo cropping issue for subdomain multisite users</li>
5
+ <li>Fixed update issue with Godaddy booster plugin</li>
6
+ <li>Fixed Post Carousel blur issue with Google Chrome</li>
7
+ <li>Fixed issue with Google Fonts not loading when applying a template</li>
8
+ </ul>
9
+
10
+
11
  <h4>2.4.2.1 - 02/11/2021</h4>
12
  <strong>Hot Fix</strong>
13
  <ul>
classes/class-fl-builder-ajax-layout.php CHANGED
@@ -677,6 +677,7 @@ final class FLBuilderAJAXLayout {
677
  }
678
 
679
  FLBuilderFonts::enqueue_styles();
 
680
 
681
  // Start the output buffer.
682
  ob_start();
677
  }
678
 
679
  FLBuilderFonts::enqueue_styles();
680
+ FLBuilderFonts::enqueue_google_fonts();
681
 
682
  // Start the output buffer.
683
  ob_start();
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.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 ) );
48
  * @return void
49
  */
50
  static private function define_constants() {
51
+ define( 'FL_BUILDER_VERSION', '2.4.2.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 ) );
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.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
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.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
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.1',
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.2',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));
includes/updater/updater.php CHANGED
@@ -22,3 +22,24 @@ if ( ! class_exists( 'FLUpdater' ) && FL_BUILDER_LITE !== true ) {
22
  if ( FL_BUILDER_LITE === true ) {
23
  add_action( 'fl_themes_license_form', 'FLBuilderAdmin::render_form_lite' );
24
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  if ( FL_BUILDER_LITE === true ) {
23
  add_action( 'fl_themes_license_form', 'FLBuilderAdmin::render_form_lite' );
24
  }
25
+
26
+ /**
27
+ * Godaddy Booster fix.
28
+ */
29
+ add_action( 'init', function() {
30
+ if ( is_admin() && FL_BUILDER_LITE === true && defined( 'FL_BUILDER_BOOSTER_DIR' ) && ! defined( 'FL_UPDATER_DIR' ) ) {
31
+ $data = get_plugin_data( FL_BUILDER_BOOSTER_DIR . '/bb-booster.php', false, false );
32
+ if ( version_compare( $data['Version'], '1.0.9.2', '<=' ) ) {
33
+ define( 'FL_UPDATER_DIR', FL_BUILDER_DIR . 'includes/updater/' );
34
+ require_once FL_UPDATER_DIR . 'classes/class-fl-updater.php';
35
+ FLUpdater::add_product(
36
+ array(
37
+ 'name' => __( 'Beaver Builder Booster', 'bb-booster' ),
38
+ 'version' => '1.0.9.1',
39
+ 'slug' => 'bb-booster',
40
+ 'type' => 'plugin',
41
+ )
42
+ );
43
+ }
44
+ }
45
+ } );
modules/photo/photo.php CHANGED
@@ -392,7 +392,26 @@ class FLPhotoModule extends FLBuilderModule {
392
 
393
  $file_path = trailingslashit( WP_CONTENT_DIR ) . ltrim( str_replace( basename( WP_CONTENT_DIR ), '', wp_make_link_relative( $url_path ) ), '/' );
394
 
395
- if ( fl_builder_filesystem()->file_exists( $file_path ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
  $this->_editor = wp_get_image_editor( $file_path );
397
  } else {
398
  if ( ! is_wp_error( wp_safe_remote_head( $url_path, array( 'timeout' => 5 ) ) ) ) {
392
 
393
  $file_path = trailingslashit( WP_CONTENT_DIR ) . ltrim( str_replace( basename( WP_CONTENT_DIR ), '', wp_make_link_relative( $url_path ) ), '/' );
394
 
395
+ if ( is_multisite() && ! is_subdomain_install() ) {
396
+ // take the original url_path and make a cleaner one, then rebuild file_path
397
+
398
+ $subsite_path = get_blog_details()->path;
399
+ $url_parsed_path = wp_parse_url( $url_path, PHP_URL_PATH );
400
+ $url_parsed_path_parts = explode( '/', $url_parsed_path );
401
+
402
+ if ( isset( $url_parsed_path_parts[1] ) && "/{$url_parsed_path_parts[1]}/" === $subsite_path ) {
403
+
404
+ $path_right_half = wp_make_link_relative( $url_path );
405
+ $path_left_half = str_replace( $path_right_half, '', $url_path );
406
+ $path_right_half2 = str_replace( $subsite_path, '', $path_right_half );
407
+
408
+ // rebuild file_path using a cleaner URL as input
409
+ $url_path2 = $path_left_half . '/' . $path_right_half2;
410
+ $file_path = trailingslashit( WP_CONTENT_DIR ) . ltrim( str_replace( basename( WP_CONTENT_DIR ), '', wp_make_link_relative( $url_path2 ) ), '/' );
411
+ }
412
+ }
413
+
414
+ if ( file_exists( $file_path ) ) {
415
  $this->_editor = wp_get_image_editor( $file_path );
416
  } else {
417
  if ( ! is_wp_error( wp_safe_remote_head( $url_path, array( 'timeout' => 5 ) ) ) ) {
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: justinbusa, RobbyMcCullough, billyyoung, hinampaksh, diegoliv, webmandesign, eugenealegiojo, helgatheviking, ozancanakli, brentjettgmailcom, jproffitt71, brainstormforce, ideaboxcreations, laubsterboy, nikolayyordanov, codente, pross, pedromendonca
3
  Tags: page builder, beaver builder, landing page, front-end builder, drag and drop editor
4
  Requires at least: 4.6
5
- Tested up to: 5.6
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPL2+
2
  Contributors: justinbusa, RobbyMcCullough, billyyoung, hinampaksh, diegoliv, webmandesign, eugenealegiojo, helgatheviking, ozancanakli, brentjettgmailcom, jproffitt71, brainstormforce, ideaboxcreations, laubsterboy, nikolayyordanov, codente, pross, pedromendonca
3
  Tags: page builder, beaver builder, landing page, front-end builder, drag and drop editor
4
  Requires at least: 4.6
5
+ Tested up to: 5.7
6
  Requires PHP: 5.6
7
  Stable tag: trunk
8
  License: GPL2+