WordPress Page Builder – Beaver Builder - Version 1.10.9.2

Version Description

Download this release

Release Info

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

Code changes from version 1.10.9.1 to 1.10.9.2

changelog.txt CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  <h4>1.10.9.1 10/12/17</h4>
2
  <p><strong>Hot Fix</strong></p>
3
  <ul>
1
+ <h4>1.10.9.2 10/26/17</h4>
2
+ <p><strong>Hot Fix</strong></p>
3
+ <ul>
4
+ <li>Fixed error when saving column settings after deleting a row.</li>
5
+ <li>Fixed post module pagination not working if multiple post modules are on the same page.</li>
6
+ </ul>
7
+
8
  <h4>1.10.9.1 10/12/17</h4>
9
  <p><strong>Hot Fix</strong></p>
10
  <ul>
classes/class-fl-builder-debug.php CHANGED
@@ -296,27 +296,36 @@ final class FL_Debug {
296
  );
297
  self::register( 'licence', $args );
298
 
299
- $subscription = FLUpdater::get_subscription_info();
300
- $args = array(
301
- 'name' => 'Beaver Builder Licence',
302
- 'data' => ( $subscription->active ) ? 'Active' : 'Not Active',
303
- );
304
- self::register( 'bb_sub', $args );
305
-
306
- if ( isset( $subscription->error ) ) {
307
  $args = array(
308
- 'name' => 'Licence Error',
309
- 'data' => $subscription->error,
310
  );
311
- self::register( 'bb_sub_err', $args );
312
- }
313
 
314
- if ( isset( $subscription->domain ) ) {
 
315
  $args = array(
316
- 'name' => 'Domain Active',
317
- 'data' => ( '1' == $subscription->domain->active ) ? 'Yes' : 'No',
318
  );
319
- self::register( 'bb_sub_domain', $args );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  }
321
 
322
  $args = array(
296
  );
297
  self::register( 'licence', $args );
298
 
299
+ if ( true === FL_BUILDER_LITE ) {
 
 
 
 
 
 
 
300
  $args = array(
301
+ 'name' => 'Beaver Builder Licence',
302
+ 'data' => 'Lite version detected',
303
  );
304
+ self::register( 'bb_sub_lite', $args );
 
305
 
306
+ } else {
307
+ $subscription = FLUpdater::get_subscription_info();
308
  $args = array(
309
+ 'name' => 'Beaver Builder Licence',
310
+ 'data' => ( $subscription->active ) ? 'Active' : 'Not Active',
311
  );
312
+ self::register( 'bb_sub', $args );
313
+
314
+ if ( isset( $subscription->error ) ) {
315
+ $args = array(
316
+ 'name' => 'Licence Error',
317
+ 'data' => $subscription->error,
318
+ );
319
+ self::register( 'bb_sub_err', $args );
320
+ }
321
+
322
+ if ( isset( $subscription->domain ) ) {
323
+ $args = array(
324
+ 'name' => 'Domain Active',
325
+ 'data' => ( '1' == $subscription->domain->active ) ? 'Yes' : 'No',
326
+ );
327
+ self::register( 'bb_sub_domain', $args );
328
+ }
329
  }
330
 
331
  $args = array(
classes/class-fl-builder-loader.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'FLBuilderLoader' ) ) {
43
  * @return void
44
  */
45
  static private function define_constants() {
46
- define( 'FL_BUILDER_VERSION', '1.10.9.1' );
47
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
48
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
49
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
43
  * @return void
44
  */
45
  static private function define_constants() {
46
+ define( 'FL_BUILDER_VERSION', '1.10.9.2' );
47
  define( 'FL_BUILDER_FILE', trailingslashit( dirname( dirname( __FILE__ ) ) ) . 'fl-builder.php' );
48
  define( 'FL_BUILDER_DIR', plugin_dir_path( FL_BUILDER_FILE ) );
49
  define( 'FL_BUILDER_URL', plugins_url( '/', FL_BUILDER_FILE ) );
classes/class-fl-builder-loop.php CHANGED
@@ -287,10 +287,6 @@ final class FLBuilderLoop {
287
  * @return void
288
  */
289
  static public function init_rewrite_rules() {
290
- $custom_paged = self::get_custom_paged();
291
- if ( empty( $custom_paged ) && ! is_admin() ) {
292
- return;
293
- }
294
 
295
  $fronts = self::get_rewrite_fronts();
296
  $paged_regex = self::$paged_regex_base;
@@ -318,9 +314,6 @@ final class FLBuilderLoop {
318
  // Post single - Numeric permastruct (/archives/%post_id%)
319
  $fronts['default'] . '([0-9]+)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.php?p=$matches[1]&flpaged=$matches[2]',
320
 
321
- // CPT single
322
- '(.+?)/([^/]+)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.php?post_type=$matches[1]&name=$matches[2]&flpaged=$matches[3]',
323
-
324
  // Page
325
  '(.?.+?)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&flpaged=$matches[2]',
326
 
287
  * @return void
288
  */
289
  static public function init_rewrite_rules() {
 
 
 
 
290
 
291
  $fronts = self::get_rewrite_fronts();
292
  $paged_regex = self::$paged_regex_base;
314
  // Post single - Numeric permastruct (/archives/%post_id%)
315
  $fronts['default'] . '([0-9]+)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.php?p=$matches[1]&flpaged=$matches[2]',
316
 
 
 
 
317
  // Page
318
  '(.?.+?)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.php?pagename=$matches[1]&flpaged=$matches[2]',
319
 
classes/class-fl-builder-model.php CHANGED
@@ -1350,8 +1350,14 @@ final class FLBuilderModel {
1350
  // Delete the node.
1351
  unset( $data[ $node_id ] );
1352
 
 
 
 
 
 
 
 
1353
  // Reorder sibling nodes.
1354
- $siblings = self::get_nodes( null, $node->parent );
1355
  $position = 0;
1356
 
1357
  foreach ( $siblings as $sibling_id => $sibling ) {
@@ -2059,12 +2065,15 @@ final class FLBuilderModel {
2059
  }
2060
 
2061
  // Find the sibling column to absorb this resize.
2062
- if ( 0 === $pos ) {
2063
- $sibling = $cols[1];
2064
- } elseif ( $pos == $num_cols - 1 ) {
2065
- $sibling = $cols[ $num_cols - 2 ];
2066
- } else {
2067
- $sibling = $cols[ $pos + 1 ];
 
 
 
2068
  }
2069
 
2070
  // Find other siblings.
1350
  // Delete the node.
1351
  unset( $data[ $node_id ] );
1352
 
1353
+ // Get the sibling nodes.
1354
+ if ( 'row' === $node->type ) {
1355
+ $siblings = self::get_nodes( 'row' );
1356
+ } else {
1357
+ $siblings = self::get_nodes( null, $node->parent );
1358
+ }
1359
+
1360
  // Reorder sibling nodes.
 
1361
  $position = 0;
1362
 
1363
  foreach ( $siblings as $sibling_id => $sibling ) {
2065
  }
2066
 
2067
  // Find the sibling column to absorb this resize.
2068
+ for ( $i = 0; $i < count( $cols ); $i++ ) {
2069
+ if ( $col->node == $cols[ $i ]->node ) {
2070
+ if ( isset( $cols[ $i + 1 ] ) ) {
2071
+ $sibling = $cols[ $i + 1 ];
2072
+ } else {
2073
+ $sibling = $cols[ $i - 1 ];
2074
+ }
2075
+ break;
2076
+ }
2077
  }
2078
 
2079
  // Find other siblings.
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: 1.10.9.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: 1.10.9.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' => '1.10.9.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' => '1.10.9.2',
7
  'slug' => 'bb-plugin',
8
  'type' => 'plugin',
9
  ));