Version Description
Download this release
Release Info
Developer | pross |
Plugin | WordPress Page Builder – Beaver Builder |
Version | 2.5.4.6 |
Comparing to | |
See all releases |
Code changes from version 2.5.4.5 to 2.5.4.6
- classes/class-fl-builder-loader.php +1 -1
- classes/class-fl-builder-model.php +4 -4
- fl-builder.php +1 -1
- includes/updater-config.php +1 -1
- readme.txt +1 -1
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.5.4.
|
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', esc_url( plugins_url( '/', FL_BUILDER_FILE ) ) );
|
48 |
* @return void
|
49 |
*/
|
50 |
static private function define_constants() {
|
51 |
+
define( 'FL_BUILDER_VERSION', '2.5.4.6' );
|
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', esc_url( plugins_url( '/', FL_BUILDER_FILE ) ) );
|
classes/class-fl-builder-model.php
CHANGED
@@ -417,10 +417,10 @@ final class FLBuilderModel {
|
|
417 |
|
418 |
if ( ! empty( self::$post_id ) ) {
|
419 |
// Get a post ID from the internal $post_id array if not empty.
|
420 |
-
return self::$post_id[0];
|
421 |
} elseif ( isset( $post_data['post_id'] ) ) {
|
422 |
// Get a post ID from an AJAX request.
|
423 |
-
return $post_data['post_id'];
|
424 |
}
|
425 |
}
|
426 |
|
@@ -430,10 +430,10 @@ final class FLBuilderModel {
|
|
430 |
|
431 |
if ( in_the_loop() && is_main_query() && isset( $wp_the_query->post ) && $wp_the_query->post instanceof WP_Post ) {
|
432 |
// Get a post ID from the main query.
|
433 |
-
return $wp_the_query->post->ID;
|
434 |
} elseif ( $post instanceof WP_Post ) {
|
435 |
// Get a post ID in a query outside of the main loop.
|
436 |
-
return $post->ID;
|
437 |
}
|
438 |
|
439 |
// No post ID found.
|
417 |
|
418 |
if ( ! empty( self::$post_id ) ) {
|
419 |
// Get a post ID from the internal $post_id array if not empty.
|
420 |
+
return (int) self::$post_id[0];
|
421 |
} elseif ( isset( $post_data['post_id'] ) ) {
|
422 |
// Get a post ID from an AJAX request.
|
423 |
+
return (int) $post_data['post_id'];
|
424 |
}
|
425 |
}
|
426 |
|
430 |
|
431 |
if ( in_the_loop() && is_main_query() && isset( $wp_the_query->post ) && $wp_the_query->post instanceof WP_Post ) {
|
432 |
// Get a post ID from the main query.
|
433 |
+
return (int) $wp_the_query->post->ID;
|
434 |
} elseif ( $post instanceof WP_Post ) {
|
435 |
// Get a post ID in a query outside of the main loop.
|
436 |
+
return (int) $post->ID;
|
437 |
}
|
438 |
|
439 |
// No post ID found.
|
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.5.4.
|
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.5.4.6
|
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.5.4.
|
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.5.4.6',
|
7 |
'slug' => 'bb-plugin',
|
8 |
'type' => 'plugin',
|
9 |
));
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, beaver builder, landing page, front-end builder, drag and dr
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.5.4.
|
8 |
License: GPL2+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.5.4.6
|
8 |
License: GPL2+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|