Skip to content

Commit

Permalink
= 4.2.6.9.3 =
Browse files Browse the repository at this point in the history
~ Fixed: save html metabo textarea, wysiwyg
  • Loading branch information
tungnxt89 committed Jul 31, 2024
1 parent d535427 commit b382f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/admin/views/meta-boxes/fields/textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function output( $thepostid ) {
}

public function save( $post_id ) {
$value = wp_kses_post( LP_Request::get_param( $this->id, $this->default ?? '' ) );
$value = LP_Request::get_param( $this->id, $this->default ?? '', 'html' );
update_post_meta( $post_id, $this->id, $value );

return $value;
Expand Down
2 changes: 1 addition & 1 deletion inc/admin/views/meta-boxes/fields/wysiwyg.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function output( $thepostid ) {
}

public function save( $post_id ) {
$meta_value = wpautop( LP_Request::get_param( $this->id, $this->default ?? '' ) );
$meta_value = LP_Request::get_param( $this->id, $this->default ?? '', 'html' );

update_post_meta( $post_id, $this->id, $meta_value );

Expand Down

0 comments on commit b382f35

Please sign in to comment.