Skip to content

Commit e0bc438

Browse files
author
Viorel
committed
Merge branch 'master' of github.com:ThemeFuse/Unyson-PageBuilder-Extension
2 parents 8810540 + 60babf1 commit e0bc438

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

class-fw-extension-page-builder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ public function _theme_filter_fw_shortcode_atts( $atts ) {
264264
*/
265265
public function _theme_filter_prevent_autop( $content ) {
266266
if ( $this->is_builder_post() ) {
267+
if (!apply_filters(
268+
'fw_ext_page_builder_output_content_wrapper', true
269+
)) {
270+
return $content;
271+
}
272+
267273
$wrapper_class = apply_filters( 'fw_ext_page_builder_content_wrapper_class', 'fw-page-builder-content' );
268274

269275
/**

includes/page-builder/includes/item-types/simple/static/js/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'<% } %>' +
4141
'<% } %>' +
4242

43-
'<%= title %>' +
43+
'<span><%= title %></span>' +
4444
'<div class="controls">' +
4545

4646
'<% if (hasOptions) { %>' +

includes/page-builder/includes/items-corrector/class-page-builder-items-corrector.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ private function correct_root_items()
205205
if (
206206
($shortcode_instance = $shortcodes_extension->get_shortcode($items[$i]['shortcode']))
207207
&&
208-
$shortcode_instance->get_config('page_builder/disable_correction')
208+
(
209+
$shortcode_instance->get_config('page_builder/disable_correction')
210+
||
211+
$shortcode_instance->get_config('page_builder/disable_root_correction')
212+
)
209213
) {
210214
$fixed_items[] = $items[$i];
211215
} else {

0 commit comments

Comments
 (0)