Version Description
Download this release
Release Info
Developer | pross |
Plugin | WordPress Page Builder – Beaver Builder |
Version | 2.5.4.4 |
Comparing to | |
See all releases |
Code changes from version 2.5.4.3 to 2.5.4.4
- classes/class-fl-builder-loader.php +1 -1
- classes/class-fl-builder-model.php +4 -1
- fl-builder.php +1 -1
- includes/admin-posts.php +1 -0
- includes/updater-config.php +1 -1
- js/fl-builder-admin-posts.js +3 -0
- readme.txt +2 -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.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 ) ) );
|
classes/class-fl-builder-model.php
CHANGED
@@ -644,7 +644,10 @@ final class FLBuilderModel {
|
|
644 |
* @return void
|
645 |
*/
|
646 |
static public function disable() {
|
647 |
-
|
|
|
|
|
|
|
648 |
}
|
649 |
|
650 |
/**
|
644 |
* @return void
|
645 |
*/
|
646 |
static public function disable() {
|
647 |
+
if ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'fl-enable-editor' ) ) {
|
648 |
+
update_post_meta( self::get_post_id(), '_fl_builder_enabled', false );
|
649 |
+
}
|
650 |
+
exit;
|
651 |
}
|
652 |
|
653 |
/**
|
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.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
|
includes/admin-posts.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<div class="fl-builder-admin">
|
2 |
<?php if ( FLBuilderUserAccess::current_user_can( 'builder_access' ) ) : ?>
|
3 |
<div class="fl-builder-admin-tabs">
|
|
|
4 |
<a href="javascript:void(0);" onclick="return false;" class="fl-enable-editor<?php echo ( ! $enabled ) ? ' fl-active' : ''; ?>"><?php _e( 'Text Editor', 'fl-builder' ); ?></a>
|
5 |
<a href="javascript:void(0);" onclick="return false;" class="fl-enable-builder<?php echo ( $enabled ) ? ' fl-active' : ''; ?>"><?php echo FLBuilderModel::get_branding(); ?></a>
|
6 |
</div>
|
1 |
<div class="fl-builder-admin">
|
2 |
<?php if ( FLBuilderUserAccess::current_user_can( 'builder_access' ) ) : ?>
|
3 |
<div class="fl-builder-admin-tabs">
|
4 |
+
<?php wp_nonce_field( 'fl-enable-editor', '_fl_enable_editor' ); ?>
|
5 |
<a href="javascript:void(0);" onclick="return false;" class="fl-enable-editor<?php echo ( ! $enabled ) ? ' fl-active' : ''; ?>"><?php _e( 'Text Editor', 'fl-builder' ); ?></a>
|
6 |
<a href="javascript:void(0);" onclick="return false;" class="fl-enable-builder<?php echo ( $enabled ) ? ' fl-active' : ''; ?>"><?php echo FLBuilderModel::get_branding(); ?></a>
|
7 |
</div>
|
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.4',
|
7 |
'slug' => 'bb-plugin',
|
8 |
'type' => 'plugin',
|
9 |
));
|
js/fl-builder-admin-posts.js
CHANGED
@@ -47,8 +47,11 @@
|
|
47 |
$('.fl-builder-admin-tabs a').removeClass('fl-active');
|
48 |
$(this).addClass('fl-active');
|
49 |
|
|
|
|
|
50 |
FLBuilderAdminPosts.ajax({
|
51 |
action: 'fl_builder_disable',
|
|
|
52 |
}, FLBuilderAdminPosts._enableEditorComplete);
|
53 |
}
|
54 |
},
|
47 |
$('.fl-builder-admin-tabs a').removeClass('fl-active');
|
48 |
$(this).addClass('fl-active');
|
49 |
|
50 |
+
_wpnonce = $('.fl-builder-admin-tabs').find('#_fl_enable_editor').val();
|
51 |
+
|
52 |
FLBuilderAdminPosts.ajax({
|
53 |
action: 'fl_builder_disable',
|
54 |
+
_wpnonce: _wpnonce
|
55 |
}, FLBuilderAdminPosts._enableEditorComplete);
|
56 |
}
|
57 |
},
|
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 |
|
@@ -115,3 +115,4 @@ Visit our [changelog page](https://www.wpbeaverbuilder.com/change-logs/?utm_medi
|
|
115 |
== Upgrade Notice ==
|
116 |
|
117 |
Visit our [changelog page](https://www.wpbeaverbuilder.com/change-logs/?utm_medium=bb-lite&utm_source=repo-readme&utm_campaign=repo-upgrade-page) for up-to-date information on what has been going on with the development of Beaver Builder.
|
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.5.4.4
|
8 |
License: GPL2+
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
115 |
== Upgrade Notice ==
|
116 |
|
117 |
Visit our [changelog page](https://www.wpbeaverbuilder.com/change-logs/?utm_medium=bb-lite&utm_source=repo-readme&utm_campaign=repo-upgrade-page) for up-to-date information on what has been going on with the development of Beaver Builder.
|
118 |
+
|