Skip to content

Commit

Permalink
fix: save settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daonham committed Dec 20, 2022
1 parent 4cbed85 commit a3e39a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions inc/admin/meta-box/class-lp-meta-box-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ public static function output_fields( $options ) {
}

public static function save_fields( $options, $data = null ) {
if ( is_null( $data ) ) {
$data = LP_Helper::sanitize_params_submitted( $_POST, 'html' );
}

if ( empty( $data ) ) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion inc/settings/abstract-settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function save_settings( $section = null, $tab = '' ) {
$settings = $this->sanitize_settings( $settings );

if ( $settings ) {
LP_Meta_Box_Helper::save_fields( $settings );
LP_Meta_Box_Helper::save_fields( $settings, $_POST );
}
}

Expand Down

0 comments on commit a3e39a8

Please sign in to comment.