no dot use ucfirst nor ucwords for method title

This commit is contained in:
RistoNiinemets 2013-10-25 18:44:17 +03:00
parent ae00faecdd
commit a96cb41c83
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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