Fix undefined global variable notice
This commit is contained in:
parent
5f28c733cc
commit
c837827992
|
@ -100,6 +100,8 @@ class WC_Settings_Tax extends WC_Settings_Page {
|
|||
* Save settings.
|
||||
*/
|
||||
public function save() {
|
||||
global $current_section;
|
||||
|
||||
if ( ! $current_section ) {
|
||||
$settings = $this->get_settings();
|
||||
WC_Admin_Settings::save_fields( $settings );
|
||||
|
|
Loading…
Reference in New Issue