Fix undefined global variable notice

This commit is contained in:
roykho 2017-05-24 07:21:20 -07:00
parent 5f28c733cc
commit c837827992
No known key found for this signature in database
GPG Key ID: 9B06F996CD4ECB92
1 changed files with 2 additions and 0 deletions

View File

@ -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 );