Skip to content

Commit

Permalink
Merge branch 'release/2.29.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Sep 30, 2024
2 parents b66eb7d + 0098abd commit cd68dc4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions compat/layout-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,19 @@ public function render_layout_block( $attributes, $content = null ) {
};

$is_editing = SiteOrigin_Panels_Admin::is_block_editor();

add_filter( 'siteorigin_panels_layout_classes', $add_custom_class_name );
SiteOrigin_Panels_Post_Content_Filters::add_filters( true );

if ( $is_editing ) {
SiteOrigin_Panels_Post_Content_Filters::add_filters( true );
}

$rendered_layout = SiteOrigin_Panels::renderer()->render( $builder_id, ! $is_editing, $panels_data );
SiteOrigin_Panels_Post_Content_Filters::remove_filters( true );

if ( $is_editing ) {
SiteOrigin_Panels_Post_Content_Filters::remove_filters( true );
}

remove_filter( 'siteorigin_panels_layout_classes', $add_custom_class_name );

if ( is_wp_error( $rendered_layout ) ) {
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ SiteOrigin offers a single premium plugin that enhances and extends Page Builder

== Changelog ==

= 2.29.22 – 30 September 2024 =
* Layout Block: Removed content filter attributes from the front-end.

= 2.29.21 – 17 September 2024 =
* Prebuilt Local Layouts: Resolved a potential error.
* Prebuilt Local Layouts: Restricted layout files to JSON.
Expand Down

0 comments on commit cd68dc4

Please sign in to comment.