Skip to content

Commit

Permalink
Fix auto render another language chart #731
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Nov 4, 2022
1 parent 0cc4425 commit 63d2d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Visualizer/Module/Frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function renderChart( $atts ) {

if ( Visualizer_Module::is_pro() && function_exists( 'icl_get_languages' ) ) {
global $sitepress;
$locale = get_locale();
$locale = icl_get_current_language();
$locale = strtolower( str_replace( '_', '-', $locale ) );
$trid = $sitepress->get_element_trid( $atts['id'], 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
$translations = $sitepress->get_element_translations( $trid );
Expand Down

0 comments on commit 63d2d6b

Please sign in to comment.