Skip to content

Commit 9d61cfd

Browse files
rename Table (New) to Table in chart types page
1 parent cdb954e commit 9d61cfd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,10 @@ private static function handleDeprecatedCharts( $types, $enabledOnly, $get2Darra
419419
$deprecated[] = 'table';
420420

421421
// rename the new table chart type.
422-
if ( self::hasChartType( 'table' ) ) {
423-
if ( $get2Darray ) {
424-
$types['dataTable'] = esc_html__( 'Table', 'visualizer' );
425-
} else {
426-
$types['dataTable']['name'] = esc_html__( 'Table', 'visualizer' );
427-
}
422+
if ( $get2Darray ) {
423+
$types['dataTable'] = esc_html__( 'Table', 'visualizer' );
424+
} else {
425+
$types['dataTable']['name'] = esc_html__( 'Table', 'visualizer' );
428426
}
429427

430428
// if a user has a Gauge/Candlestick chart, then let them keep using it.

0 commit comments

Comments
 (0)