no dot use ucfirst nor ucwords for method title
This commit is contained in:
parent
ae00faecdd
commit
a96cb41c83
|
@ -46,7 +46,7 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
|
||||
foreach ( $payment_gateways as $gateway ) {
|
||||
|
||||
$title = empty( $gateway->method_title ) ? ucfirst( $gateway->id ) : ucfirst( $gateway->method_title );
|
||||
$title = empty( $gateway->method_title ) ? ucfirst( $gateway->id ) : $gateway->method_title;
|
||||
|
||||
$sections[ strtolower( get_class( $gateway ) ) ] = esc_html( $title );
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ class WC_Settings_Integrations extends WC_Settings_Page {
|
|||
$current_section = current( $integrations )->id;
|
||||
|
||||
foreach ( $integrations as $integration ) {
|
||||
$title = empty( $integration->method_title ) ? ucfirst( $integration->id ) : ucfirst( $integration->method_title );
|
||||
$title = empty( $integration->method_title ) ? ucfirst( $integration->id ) : $integration->method_title;
|
||||
|
||||
$sections[ strtolower( $integration->id ) ] = esc_html( $title );
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ class WC_Settings_Shipping extends WC_Settings_Page {
|
|||
|
||||
if ( ! $method->has_settings() ) continue;
|
||||
|
||||
$title = empty( $method->method_title ) ? ucfirst( $method->id ) : ucfirst( $method->method_title );
|
||||
$title = empty( $method->method_title ) ? ucfirst( $method->id ) : $method->method_title;
|
||||
|
||||
$sections[ strtolower( get_class( $method ) ) ] = esc_html( $title );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue