fix PHP 7.2 travis build
This commit is contained in:
parent
1dec0264bc
commit
6687633c92
|
@ -164,7 +164,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
$method->admin_options();
|
||||
}
|
||||
}
|
||||
if ( !$is_shipping_method ) {
|
||||
if ( ! $is_shipping_method ) {
|
||||
$settings = $this->get_settings();
|
||||
$settings = apply_filters( 'woocommerce_get_settings_' . $this->id, $settings, $current_section );
|
||||
WC_Admin_Settings::output_fields( $settings );
|
||||
|
@ -198,7 +198,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
do_action( 'woocommerce_update_options_' . $this->id . '_' . $method->id );
|
||||
}
|
||||
}
|
||||
if ( !$is_shipping_method ) {
|
||||
if ( ! $is_shipping_method ) {
|
||||
WC_Admin_Settings::save_fields( $this->get_settings( $current_section ) );
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue