Skip to content

Commit

Permalink
Escape wpautop() using wp_kses_post()
Browse files Browse the repository at this point in the history
  • Loading branch information
wolffe committed Jun 12, 2024
1 parent 0a71e8d commit 2baa419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/builder/class-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public static function content( $post_id ) {

<div id="fxb-item-<?php echo esc_attr( $item_id ); ?>" class="fxb-item">
<div class="fxb-wrap">
<?php echo wpautop( $items_data[ $item_id ]['content'] ); ?>
<?php echo wp_kses_post( wpautop( wp_kses_post( $items_data[ $item_id ]['content'] ) ) ); ?>
</div><!-- .fxb-item > .fxb-wrap -->
</div><!-- .fxb-item -->

Expand Down
2 changes: 1 addition & 1 deletion includes/settings/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function() {
?>
<p>
<label>
<input type="checkbox" value="<?php echo esc_attr( $post_type->name ); ?>" name="fx-builder_post_types[]" <?php checked( post_type_supports( esc_attr( $post_type->name ), 'fx_builder' ) ); ?>> <?php echo $post_type->label; ?>
<input type="checkbox" value="<?php echo esc_attr( $post_type->name ); ?>" name="fx-builder_post_types[]" <?php checked( post_type_supports( esc_attr( $post_type->name ), 'fx_builder' ) ); ?>> <?php echo esc_attr( $post_type->label ); ?>
</label>
</p>
<?php
Expand Down

0 comments on commit 2baa419

Please sign in to comment.